Displaying 2 results from an estimated 2 matches for "clipflag".
2001 Apr 05
1
decoder_example -- event driven?
...example, pcm[0] is left, and pcm[1] is right. samples is
the size of each channel. Convert the float values
(-1.<=range<=1.) to whatever PCM format and write it out */
while((samples=vorbis_synthesis_pcmout(&vd,&pcm))>0) {
int i,j;
int clipflag=0;
int bout=(samples<convsize?samples:convsize);
fprintf (stderr,
"\nhoebag, i made it the while loop");
/* convert floats to 16 bit signed ints (host order) and
interleave */
for(i=0;i<vi.channels;i++){
o...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...ght. samples is
the size of each channel. Convert the float values
(-1.<=range<=1.) to whatever PCM format and write it out */
while((samples=vorbis_synthesis_pcmout(&vd,&pcm))>0){
int j;
int clipflag=0;
int bout=(samples<convsize?samples:convsize);
/* convert floats to 16 bit signed ints (host order) and
interleave */
for(i=0;i<vi.channels;i++){
ogg_int16_t *ptr=convbuffer+i;...