playing an MP3 file using CMdaAudioOutputstream in S60 3rd edition

Login to reply to this topic.
Wed, 2006-07-26 14:08
Joined: 2006-05-10
Forum posts: 71
hi all,

           did any one tried playing mp3 file using streaming APIs in s60 3rd edition sdk?

        does it need CMMFcodec plugin to be used? or the SetDataTypeL() API with proper fourCC codec itself will do the trick? if so, tell me what are the audio properties( like sampling rate,mono,etc) to be used for playing it...

    an earlier response will be appreciated....  Smiley

Thu, 2006-07-27 11:15
Joined: 2006-05-10
Forum posts: 71
Re: playing an MP3 file using CMdaAudioOutputstream in S60 3rd e
hi all,

          sorry for the trouble.... i successfully did mp3 streaming in s60 3rd edition...  Smiley
Mon, 2007-07-16 14:45
Joined: 2004-06-10
Forum posts: 5
Re: playing an MP3 file using CMdaAudioOutputstream in S60 3rd e

Would you be so kind as to share your experience? Eye-wink
Specifically, I'm trying to use CMdaAudioOutputStream, with SetDataTypeL to KMMFFourCCCodeMP3. From my experience CMMFCodec might be too slow (I think it's a software codec).

Anyway, I get no error code, but I also don't hear anything. I'm trying to play data from an MP3 file, which I've also opened with the phone's music player and heard it, so the data itself is valid. I'm working similarly with AMR and it does work. Is there something specific I have to do with MP3? I've only found an S60 internet radio example, but it is quite complex and analyzes all the frame headers and I'm not even sure why this is necessary.

Thanks,
Uriah

Thu, 2007-08-23 11:28
Joined: 2007-08-23
Forum posts: 8
Re: playing an MP3 file using CMdaAudioOutputstream in S60 3rd e

I'm also interested in this topic. I've tried to run S60 Internet Radio in 3rd Edition Emulator and it fails but it runs on device.

In emulator, when we set DataType to KMMFFourCCCodeMP3, says that this format is not supported:

                TRAP(err, iStreamOutput->SetDataTypeL(iDataType.FourCC()));
                if ( err )
                        {
                        if ( err == KErrNotSupported ) { ... }
                        }

Is there any SDK in which emulator it runs??

Thanks,
Xavi

Mon, 2007-10-22 13:18
Joined: 2006-12-19
Forum posts: 67
Re: playing an MP3 file using CMdaAudioOutputstream in S60 3rd e

A very usefull discussion regarding this issue is here :

http://newlc.com/topic-15221

From here I got to know , phone vth SDK S60 FP2 unwards have h/w codec so MAudioOutputStream() can play mp3 file directly.
No convertion needed.

And for S60 2.1 phone s/w codec is there.So we use CMMFCodec for conevrtion.

Cheers,
Netra

Wed, 2008-03-12 07:38
Joined: 2006-04-13
Forum posts: 6
Re: playing an MP3 file using CMdaAudioOutputstream in S60 3rd e

Hi
If any one has succeded playin mp3 using audio stream on symbian 9.x plz share,
as I m getting -10 (KErrunderFlow) in MaoscPlayComplete().

Thanks
Anand

  • Login to reply to this topic.