if (block.synthesis(packet) == 0) { dspState.synthesis_blockin(block); while ((samples = dspState.synthesis_pcmout(pcm, index)) > 0) { float[][] localPcm = this.pcm[0]; int bout = (samples < convsize ? samples : convsize); dspState.synthesis_read(bout);
if (vorbisBlock.synthesis(packet) == 0) { // test for success! dspState.synthesis_blockin(vorbisBlock); while ((samples = dspState.synthesis_pcmout(_pcm, _index)) > 0) { float[][] pcm = _pcm[0]; dspState.synthesis_read(bout); // tell libvorbis how vorbisBlock.clear(); dspState.clear(); oggInfo.clear(); // must be called last
info.init(); comment.init(); if (streamState.pagein(page) < 0) { if (info.synthesis_headerin(comment, packet) < 0) { info.synthesis_headerin(comment, packet); i++; dspState.synthesis_init(info); // central decode state block.init(dspState); // local state for most of the decode
int init_decode(StaticCodeBook s){ c=s; entries=s.entries; dim=s.dim; valuelist=s.unquantize(); decode_tree=make_decode_tree(); if(decode_tree==null){ clear(); return (-1); } return (0); }
int open_nonseekable(){ // we cannot seek. Set up a 'single' (current) logical bitstream entry links=1; vi=new Info[links]; vi[0]=new Info(); // ?? vc=new Comment[links]; vc[0]=new Comment(); // ?? bug? // Try to fetch the headers, maintaining all the storage int[] foo=new int[1]; if(fetch_headers(vi[0], vc[0], foo, null)==-1) return (-1); current_serialno=foo[0]; make_decode_ready(); return 0; }
DspState(Info vi){ this(); init(vi, false); // Adjust centerW to allow an easier mechanism for determining output pcm_returned=centerW; centerW-=vi.blocksizes[W]/4+vi.blocksizes[lW]/4; granulepos=-1; sequence=-1; }
public VorbisFile(InputStream is, byte[] initial, int ibytes) throws JOrbisException{ super(); int ret=open(is, initial, ibytes); if(ret==-1){ } }
void backward(float[] data){ if(n==1) return; drftb1(n, data, trigcache, trigcache, n, splitcache); }
if (vorbisBlock.synthesis(packet) == 0) { // test for success! dspState.synthesis_blockin(vorbisBlock); while ((samples = dspState.synthesis_pcmout(_pcm, _index)) > 0) { float[][] pcm = _pcm[0]; dspState.synthesis_read(bout); // tell libvorbis how vorbisBlock.clear(); dspState.clear(); oggInfo.clear(); // must be called last
oggInfo.init(); comment.init(); if (streamState.pagein(page) < 0) { if (oggInfo.synthesis_headerin(comment, packet) < 0) { oggInfo.synthesis_headerin(comment, packet); i++; dspState.synthesis_init(oggInfo); // central decode state vorbisBlock.init(dspState); // local state for most of the decode
int init_decode(StaticCodeBook s){ c=s; entries=s.entries; dim=s.dim; valuelist=s.unquantize(); decode_tree=make_decode_tree(); if(decode_tree==null){ clear(); return (-1); } return (0); }
public int synthesis_init(Info vi){ init(vi, false); // Adjust centerW to allow an easier mechanism for determining output pcm_returned=centerW; centerW-=vi.blocksizes[W]/4+vi.blocksizes[lW]/4; granulepos=-1; sequence=-1; return (0); }
if (vorbisBlock.synthesis(packet) == 0) { // test for success! dspState.synthesis_blockin(vorbisBlock); while ((samples = dspState.synthesis_pcmout(_pcm, _index)) > 0) { float[][] pcm = _pcm[0]; dspState.synthesis_read(bout); // tell libvorbis how vorbisBlock.clear(); dspState.clear(); oggInfo.clear(); // must be called last
oggInfo.init(); comment.init(); if (streamState.pagein(page) < 0) { if (oggInfo.synthesis_headerin(comment, packet) < 0) { oggInfo.synthesis_headerin(comment, packet); i++; dspState.synthesis_init(oggInfo); // central decode state vorbisBlock.init(dspState); // local state for most of the decode
int init_decode(StaticCodeBook s){ c=s; entries=s.entries; dim=s.dim; valuelist=s.unquantize(); decode_tree=make_decode_tree(); if(decode_tree==null){ clear(); return (-1); } return (0); }
if (vorbisBlock.synthesis(packet) == 0) { // test for success! dspState.synthesis_blockin(vorbisBlock); while ((samples = dspState.synthesis_pcmout(_pcm, _index)) > 0) { float[][] pcm = _pcm[0]; dspState.synthesis_read(bout); // tell libvorbis how vorbisBlock.clear(); dspState.clear(); oggInfo.clear(); // must be called last
oggInfo.init(); comment.init(); if (streamState.pagein(page) < 0) { if (oggInfo.synthesis_headerin(comment, packet) < 0) { oggInfo.synthesis_headerin(comment, packet); i++; dspState.synthesis_init(oggInfo); // central decode state vorbisBlock.init(dspState); // local state for most of the decode
int init_decode(StaticCodeBook s) { c = s; entries = s.entries; dim = s.dim; valuelist = s.unquantize(); decode_tree = make_decode_tree(); if (decode_tree == null) { clear(); return (-1); } return (0); }
oggInfo.init(); comment.init(); if (streamState.pagein(page) < 0) { if (oggInfo.synthesis_headerin(comment, packet) < 0) { oggInfo.synthesis_headerin(comment, packet); i++; dspState.synthesis_init(oggInfo); // central decode state vorbisBlock.init(dspState); // local state for most of the decode
int init_decode(StaticCodeBook s){ c=s; entries=s.entries; dim=s.dim; valuelist=s.unquantize(); decode_tree=make_decode_tree(); if(decode_tree==null){ clear(); return (-1); } return (0); }