View Single Post
  #7 (permalink)  
Old 08-09-2007, 10:56 AM
H2o H2o is offline
D-Web Analyst
 
Join Date: Jul 2007
Posts: 246
H2o is on a distinguished road
Default Re: Symbian C++ Mp3 Streaming

The solution for your problem..

Code:
RArray<TInt> configParams;

// This setup converts audio to 16000Hz 16 bit mono PCM
configParams.Append(1); // stereo to mono switch (TRUE(1) or default FALSE(0))
configParams.Append(0); // decode left or right channel (1 left, 2 right, 0 default all)
configParams.Append(1); // decimation factor (2, 4 or default 1)
configParams.Append(1); // error concealment level (0 none, default 1)
configParams.Append(16); // resolution of PCM samples (default 16 bits)
configParams.Append(16000); //Output sampling frequency

TUid codecId = TUid::Uid(KMmfUidControllerAudio);
iOCodec2->ConfigureL(codecId, (TDesC8&) configParams);
This should solve the problem of making audio being 'slow', but no guarentees.

Hope this helps
__________________
H2O

Without us, no one can survive..
Reply With Quote