Is there any information about the size of the MMF internal buffer used by CMdaAudioOutputStream and the playout scheme?
I've observed that if i feed the audio device by calling WriteL(), in the MaoscBufferCopied() callback, passing a 320byte PCM descriptor a time (from my array of decsriptors containing audio data), the sequence of callback is very quick and several audio frames are taken from my array at higher rate than that of playout (that should be about 1/(20msec) ), say from 2 to 5-8 in about 20-40 msecs. After this burst, the next callbacks happens some time later but then with a new burst.CMdaAudioOutputStream seems to copy the buffers in a non costant rate, sometimes grabbing many buffers in quick succession and then not copying any for a long while.
This clearly shows a strong buffering behaviour of the MMF.
In my streaming audio app I'd have preferred a constant rate in emptying my buffer to make some meaningful characterization of the whole playout process.
My measures are done by timestamping the events in an array in memory an then writing it to file at the end of the streaming process for not affecting the playing process.
Has anyone information about this process?