>frameCount is passed for callback function. Use this
>value to calculate the size for writing into buffer.

This is how now I use CallBack:
Err CallbackFillBuffer(void *userData, SndStreamRef
streamRef, void *buffer, UInt32 frameCount)
{
Err error = 0;
FileRead (((Fileinfo
*)userData)->file,buffer,2,frameCount, &error);
if(error != errNone )
{
((Fileinfo *) userData)->flagOver = true;       
}
return 0;
}
since the sample size is 16 bit.(2 bytes)

But still no improvement!

Do I need to read the wav file after stripping the
header portion i.e 44 bytes?

thanks in advance



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to