/** Initialise the vorbis decoding */ private void initVorbis () { syncState.init(); }
/** Initialise the vorbis decoding */ private void initVorbis () { syncState.init(); }
/** Initialise the vorbis decoding */ private void initVorbis () { syncState.init(); }
/** Initialise the vorbis decoding */ private void initVorbis () { syncState.init(); }
syncState.init();
/** * Initialise the vorbis decoding */ private void initVorbis() { syncState.init(); }
/** * Initialise the vorbis decoding */ private void initVorbis() { syncState.init(); }
/** Initialise the vorbis decoding */ private void initVorbis () { syncState.init(); }
/** Initialise the vorbis decoding */ private void initVorbis () { syncState.init(); }
private void initVorbis() { syncState.init(); }
private void initializeJorbis (final ConverterData converterData) { // Initialize SyncState converterData.joggData.syncState.init (); // Prepare the to SyncState internal buffer converterData.joggData.syncState.buffer (JorbisCleanConverter.BUFFER_SIZE); /* * Fill the buffer with the data from SyncState's internal buffer. Note * how the size of this new buffer is different from bufferSize. */ converterData.pcmData.buffer = converterData.joggData.syncState.data; }
/** * Initializes JOrbis. First, we initialize the <code>SyncState</code> * object. After that, we prepare the <code>SyncState</code> buffer. Then * we "initialize" our buffer, taking the data in <code>SyncState</code>. */ private void initializeJOrbis() { debugOutput("Initializing JOrbis."); // Initialize SyncState joggSyncState.init(); // Prepare the to SyncState internal buffer joggSyncState.buffer(bufferSize); /* * Fill the buffer with the data from SyncState's internal buffer. Note * how the size of this new buffer is different from bufferSize. */ buffer = joggSyncState.data; debugOutput("Done initializing JOrbis."); }
public int open(RandomAccessFile input) { this.input = input; oy.clear(); oy.init(); inputStream = new OggInputStream(); decoder = new FLACDecoder(inputStream); long end = 0; try { end = input.length(); } catch (IOException e) { e.printStackTrace(); } getNextPage(1); if (bisect_forward_serialno(0, end, end + 1, serialno, 0) < 0) { clear(); return OV_EREAD; } readMetadata(); return 0; }
int open_callbacks(InputStream is, byte[] initial, int ibytes//, callbacks callbacks ) throws JOrbisException { int ret; datasource = is; oy.init(); // perhaps some data was previously read into a buffer for testing // against other stream types. Allow initialization from this // previously read data (as we may be reading from a non-seekable // stream) if (initial != null) { int index = oy.buffer(ibytes); System.arraycopy(initial, 0, oy.data, index, ibytes); oy.wrote(ibytes); } // can we seek? Stevens suggests the seek test was portable if (is instanceof SeekableInputStream) { ret = open_seekable(); } else { ret = open_nonseekable(); } if (ret != 0) { datasource = null; clear(); } return ret; }
int open_callbacks(InputStream is, byte[] initial, int ibytes//, callbacks callbacks ) throws JOrbisException{ int ret; datasource=is; oy.init(); // perhaps some data was previously read into a buffer for testing // against other stream types. Allow initialization from this // previously read data (as we may be reading from a non-seekable // stream) if(initial!=null){ int index=oy.buffer(ibytes); System.arraycopy(initial, 0, oy.data, index, ibytes); oy.wrote(ibytes); } // can we seek? Stevens suggests the seek test was portable if(is instanceof SeekableInputStream){ ret=open_seekable(); } else{ ret=open_nonseekable(); } if(ret!=0){ datasource=null; clear(); } return ret; }
int open_callbacks(InputStream is, byte[] initial, int ibytes//, callbacks callbacks ) throws JOrbisException{ int ret; datasource=is; oy.init(); // perhaps some data was previously read into a buffer for testing // against other stream types. Allow initialization from this // previously read data (as we may be reading from a non-seekable // stream) if(initial!=null){ int index=oy.buffer(ibytes); System.arraycopy(initial, 0, oy.data, index, ibytes); oy.wrote(ibytes); } // can we seek? Stevens suggests the seek test was portable if(is instanceof SeekableInputStream){ ret=open_seekable(); } else{ ret=open_nonseekable(); } if(ret!=0){ datasource=null; clear(); } return ret; }
int open_callbacks(InputStream is, byte[] initial, int ibytes//, callbacks callbacks ) throws JOrbisException{ int ret; datasource=is; oy.init(); // perhaps some data was previously read into a buffer for testing // against other stream types. Allow initialization from this // previously read data (as we may be reading from a non-seekable // stream) if(initial!=null){ int index=oy.buffer(ibytes); System.arraycopy(initial, 0, oy.data, index, ibytes); oy.wrote(ibytes); } // can we seek? Stevens suggests the seek test was portable if(is instanceof SeekableInputStream){ ret=open_seekable(); } else{ ret=open_nonseekable(); } if(ret!=0){ datasource=null; clear(); } return ret; }
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(); }
/** * 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(); } }
/** * 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(); }