Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Questions on Audio Input Stream Example

0 replies · 1,893 views · Started 13 April 2004

Recently, I have d/l one sample app from Symbian. But I got some problem when studying it. The link for d/l the sample app

http://www.symbian.com/developer/techlib/staffapps_cpp.html#audioinput

This app uses a buffer to store the incoming sound and play it back. The sample rate is 8kHz

The buffer is RPointerArray<TDes8> iBuffer

A for loop is used to save the incoming signal

for (TInt index = 0; index < iBuffer.Count(); index++)
iInput->ReadL(*iBuffer[index]);

And my questions are
1. Is the value of index increased by 8000 in one second?
2. What will be stored insided the buffer[] ? integer or string ?
3. It is quite strange that it uses ReadL in recording and WriteL in playing back. But not WriteL in recording and ReadL in playing.

Hope that someone could answer my questions.
Thank you very much