search for: uipcmsampl

Displaying 1 result from an estimated 1 matches for "uipcmsampl".

Did you mean: uipcmsamples
2012 Jun 10
1
[libtremor] ov_read is reading past file size
...ning ov_read to stop one read before, 166272 bytes, then everything is fine except the sound clip cuts off a few samples early. If I let it do the final ov_read call it attempts to read up to 168320 bytes, which is past what the PCM data actually is and the allocated buffer size. unsigned int uiPCMSamples = (unsigned int)ov_pcm_total(&vf, -1); unsigned int totalPCMSize = uiPCMSamples * vi->channels * sizeof(short); void* pvPCMBuffer = malloc(totalPCMSize); This yields 167680 bytes, so tremor knows how much PCM data there is. However ov_read is just going ahead and skipping past that numb...