- for( int i=0; i<asset->channels; ++i ) {
- float *input = vorbis_buffer[i];
- float *output = pcm_history[i] + hole_start;
- int sz = sample_count*sizeof(*output);
- if( samples_waiting )
+ int sz = sample_count*sizeof(float);
+ if( samples_waiting ) {
+ for( int i=0; i<asset->channels; ++i ) {
+ float *input = vorbis_buffer[i];
+ float *output = pcm_history[i] + hole_start;