Zdenek Kabelac wrote: >On Tue, Nov 13, 2001 at 08:28:58PM +0100, [EMAIL PROTECTED] wrote: > >>Hi! >> >>while trying to extend avicat for avis with multiple audio streams, I >>have problems with the IAviReadStream::ReadDirect method. It looks like >>the samples_read variable is not set correctly. It looks more like it is >>set to bytes_read value. >> > >If you could be more specific or even supply fix that would be great >
I am calling inStream->ReadDirect(buf,sizeof(buf), to_read,samp_read, bytes_read); where inStream is an lamemp3 audio stream, buffer is of size 1024000, to_read is 800. The values for samp_read and bytes_read returned are both 1024000. Now, if the sample size of the audio stream is one, then why are 1024000 samples returned, also only 800 are requested? But of the sample size is bigger than one, the samp_read and the bytes_read values should differ ( bytes_read = sample_size*samples_read ). Am I missing something? BTW, which IS the correct samplesize for lamemp3 audio streams? rgds, Rainer _______________________________________________ Avifile mailing list [EMAIL PROTECTED] http://prak.org/mailman/listinfo/avifile
