View Single Post
  #4 (permalink)  
Old 08-08-2007, 07:31 AM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Default Re: Symbian C++ Mp3 Streaming

Hi,

I am able to use the inbuilt mp3 decoder in 3230. using CMMFCodec::NewL(KMMFFourCCCodeMP3, KMMFFourCCCodePCM16) but there are lots of issues. I am able to decode the mp3 buffer to PCM16.
I have taken the source and destination as a pointer to 8 bit descritor TDes8* and passing the destination buffer to WriteL function of output stream

I played a mp3 file with bitrate of 24kbps,stero and with audio sample rate of 11 Khz by reading little by little from a file and passing it to CMdaAudioOutputStream. The setting I used for the stream was ESampleRate16000Hz Mono. The music played fine but was bit too slow may be because I was playing stereo. But the probelm is that the stream only supports ESampleRate16000Hz Mono and ESampleRate8000Hz Mono

If I specify any other sample rate the following line fails with NotSupported error. Stereo is not supported at all.

iOutputStream->SetAudioPropertiesL(iSetting.iSampleRate,
iSetting.iChannels);

why does it supports only two sample rate and thats too not stereo? This devices have inbuilt mp3 decoder. So why cant we adjust the settings. because if I am decoding mp3 of various sample rate I cant play them satisfactorily with just ESampleRate16000Hz Mono.
__________________
Prasanna Vignesh
MCPD | Web Developer
Reply With Quote