Java源码示例:com.jcraft.jorbis.Comment

示例1
private void initJOrbis() {
	oy = new SyncState();
	os = new StreamState();
	og = new Page();
	op = new Packet();

	vi = new Info();
	vc = new Comment();
	vd = new DspState();
	vb = new Block(vd);

	buffer = null;
	bytes = 0;

	oy.init();
}
 
示例2
/**
  * Initializes all the jOrbis and jOgg vars that are used for song playback.
  */
 private void init_jorbis()
 {
   oggSyncState_ = new SyncState();
   oggStreamState_ = new StreamState();
   oggPage_ = new Page();
   oggPacket_ = new Packet();
   vorbisInfo = new Info();
   vorbisComment = new Comment();
   vorbisDspState = new DspState();
   vorbisBlock = new Block(vorbisDspState);
   buffer = null;
   bytes = 0;
currentBytes = 0L;
   oggSyncState_.init();
 }
 
示例3
private void initJOrbis() {
    oy = new SyncState();
    os = new StreamState();
    og = new Page();
    op = new Packet();

    vi = new Info();
    vc = new Comment();
    vd = new DspState();
    vb = new Block(vd);

    buffer = null;
    bytes = 0;

    oy.init();
}
 
示例4
/**
 * Initializes OGG player
 */
private void initializeJOrbis() {
  joggPacket = new Packet();
  joggPage = new Page();
  joggStreamState = new StreamState();
  joggSyncState = new SyncState();
  jorbisDspState = new DspState();
  jorbisBlock = new Block(jorbisDspState);
  jorbisComment = new Comment();
  jorbisInfo = new Info();
  joggSyncState.init();
}
 
示例5
/**
 * Initialize JOrbis.
 */
void initJOrbis() {
	oy = new SyncState();
	os = new StreamState();
	og = new Page();
	op = new Packet();

	vi = new Info();
	vc = new Comment();
	vd = new DspState();
	vb = new Block(vd);

	oy.init();
}
 
示例6
protected final void init(InputStream stream, int inputBufferSize, int outputNumSamplesPerChannel) throws IOException
  {
      mOggStreamState  = new StreamState();
      mOggSyncState    = new SyncState();
      mVorbisDspState  = new DspState();
      mVorbisBlock     = new Block(mVorbisDspState);
      mVorbisComment   = new Comment();
      mVorbisInfo      = new Info();
      mReadPos         = 0;
      mEndOfStream     = false;
mLastPageWasRead = false;

      mOggSyncState.init();
      mOggSyncState.buffer(inputBufferSize);  // add "inputBufferSize" bytes to the buffer
      mInputBuffer      = mOggSyncState.data; // get a reference to the buffer
      mInputBufferSize  = inputBufferSize;
      mIStream          = stream;

      if(!readHeader()) {
	throw new IOException("could not read ogg headers");
}

      // IMPORTANT: read the header first before setting up the buffers
//            or else getNumChannels() will not return the right number
mPCMIndex        = Field.expand(mPCMIndex    , getNumChannels()                               , false);
mOutputBuffer    = Field.expand(mOutputBuffer, (outputNumSamplesPerChannel * getNumChannels()), false);
      mDecoderIsOpened = true;
  }
 
示例7
/**
 * Initializes all the jOrbis and jOgg vars that are used for song playback.
 */
private void init_jorbis()
{
  oggSyncState_ = new SyncState();
  oggStreamState_ = new StreamState();
  oggPage_ = new Page();
  oggPacket_ = new Packet();
  vorbisInfo = new Info();
  vorbisComment = new Comment();
  vorbisDspState = new DspState();
  vorbisBlock = new Block(vorbisDspState);
  buffer = null;
  bytes = 0;
  oggSyncState_.init();
}
 
示例8
/**
 * Initializes all the jOrbis and jOgg vars that are used for song playback.
 */
private void init_jorbis()
{
	m_oggSyncState = new SyncState();
	m_oggStreamState = new StreamState();
	m_oggPage = new Page();
	m_oggPacket = new Packet();

	m_vorbisInfo = new Info();
	m_vorbisComment = new Comment();
	m_vorbisDspState = new DspState();
	m_vorbisBlock = new Block(m_vorbisDspState);

	m_oggSyncState.init();
}
 
示例9
public ADecoder(){
    info = new Info();
    info.init();
    
    comment = new Comment();
    comment.init();

    dsp = new DspState();
    block = new Block(dsp);
}