I want to play a wav file during a call. After searching in the forum for several days, I download the demo application Streamer (which can play AMR file) and I can successfully play AMR file to uplink during a call.

Now I want to modify the application to support wav file playing also. The current problem is when I play a wav file, the audio sounds very jitter.

I read some discussion from the Forum and someone mentioned when play wav file, need to change the buffer size to 4KB. So I modified the KAPSDataBufSize from 164 to 4000. Then the application crashed every time when it calls iQ0->NotifySpaceAvailable()

Can someone give me some hints where is the problem? I really out of ideas now...