Author: Chris P.Chris P. Date: Nov 27, 2006 06:22
On Thu, 23 Nov 2006 10:09:20 -0000, mark wrote:
> Hi All,
>
> I am using the sample grabber to convert mp3 audio files to pcm data. This
> works ok as long as the conversion is done in hit from beginning to end. I
> really want to be able to stream the data say in 500 millisecond chunks I
> have tried to do this using the callback method described in a sample but I
> cannot get it to work. I always have an extra bit of data at the end of the
> decoded chunk. I know it's at the end because if I decode in say 4 second
> blocks and play the resulting pcm data I can hear a little glitch at the end
> of each block.
>
> Any ideas what could be going wrong here?
You haven't really said what you're using to do the actual decoding. You
could be using that API incorrectly or not looking at the _actual_ data
size correctly.
|