I build the AudioStreamExample released by NOKIA and install it on NOKIA 6681(Chinese version of 6680).It works well and give me 320 bytes PCM data every 20 ms. I can store the data and play them later.
I need to record audio in AMR format. I search the forum and find some good posts.I want to record AMR directly.
I add two line in ConstructL function of AudioStreamEngine.cpp:
iInputStream->SetDataTypeL( TFourCC(KMMFFourCCCodeAMR) );
iOutputStream->SetDataTypeL( TFourCC(KMMFFourCCCodeAMR) );
I change KStreamBufferSize to 32 and KStreamBufferCount to 100,and then build it and install it on NOKIA 6681. It works, but this time,every time CAudioStreamEngine::MaiscBufferCopied be called, there is only 32 bytes in the buffer.I store them and try to play them later. When I play them I hear nothing.
Can anyone tell me what is wrong? Had anyone record AMR using Audio Stream successfully?
Any help would be appreciated.
BTW: I am working on Series 60 2nd Edition FP2 .