Displaying 1 result from an estimated 1 matches for "total_samples_consum".
Did you mean:
total_samples_consumed
2007 May 01
1
contstant bittrate mode - block size - packet size
...t = ret||vorbis_encode_ctl(&vi,OV_ECTL_RATEMANAGE_HARD,&rma);
ret = ret||vorbis_encode_setup_init(&vi);
if(ret)exit(1);
/* set up the analysis state and auxiliary encoding storage */
vorbis_analysis_init(&vd,&vi);
vorbis_block_init(&vd,&vb);
//encode loop
total_samples_consumed = 0;
num_reads=0;
while(!feof(fp_infile)){
// num_mseconds = 0;
long i;
long bytes=fread(readbuffer,1,READ*4,fp_infile); /* stereo hardwired
here */
/* expose the buffer to submit data */
float **buffer=vorbis_analysis_buffer(&vd,READ);
/* uninterleave samp...