View Single Post
  #6 (permalink)  
Old 08-09-2007, 10:11 AM
bluesky bluesky is offline
D-Web Analyst
 
Join Date: Jun 2007
Posts: 201
bluesky is on a distinguished road
Default Re: Symbian C++ Mp3 Streaming

Hi,

I am able to use the configureL function of the default mp3 codec but not to much success.
I used something like this,

RArray<TInt> configParams;

configParams.Append(1);
configParams.Append(0);
configParams.Append(0);
configParams.Append(0);
configParams.Append(0);
configParams.Append(0)

TUid codecId = TUid::Uid(KMmfUidControllerAudio);
iOCodec2->ConfigureL(codecId, (TDesC8&) configParams);

There are 6 parameters needed. If I give anything less than that it gives array out of bond index panic. Initially without configuring the decoder when i played a 11KHz mp3 song by decoding buffer by buffer and setting the output stream settings to 16KHz mono my song was too slow. But when I used the above setting the playing of song was bit too fast.
I dont know what these 6 parameters correspond to. I want to adjust these 6 parameters in such a way that it gives me 16KHz mono 16bit PCM sample for all my mp3 input. I havent come across any documentation about this.

regards,
Reply With Quote