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. |