Displaying 1 result from an estimated 1 matches for "vorbisblock".
Did you mean:
vorbis_block
2006 Aug 31
0
OpenAl and Vorbis
...bisDspState,i);
audiobufFill += i*vorbisInfo.channels*2;
if (audiobufFill == fragsize) audiobufReady = true;
} else {
// no pending audio; is there a pending packet to decode?
if(ogg_stream_packetout(&oggStreamState,&oggPacket)>0){
if(vorbis_synthesis(&vorbisBlock,&oggPacket)==0) // test for success!
vorbis_synthesis_blockin(&vorbisDspState,&vorbisBlock);
}else{ // we need more data; break out to suck in another page
break;
}
}
}
//1)grab new data
if(!audiobufReady){
/* no data yet for somebody. Grab another...