×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    14

    [moved] AAC via CMdaAudioOutputStream on Simbyan^3

    Hello,

    Can somebody tell me if AAC audio stream is supported on Symbian^3 via CMdaAudioOutputStream?

    On 5th edition the line:

    TRAP( err, iAudio->SetDataTypeL( TFourCC( KMMFFourCCCodeAAC) ) );

    returns to me KErrNotSupported , however on S^3 is KErrNone. However during AAC stream playback I can hear just a noise instead of normal sound.

    Thanks in advance,
    Sergey

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,568

    Re: AAC via CMdaAudioOutputStream on Simbyan^3

    Although they are built from the same source code, it may still happen that multimedia features of the emulator are less robust than it will be on actual devices.
    Since you already get some result, it is probably supported, however some additional configuration may be necessary, perhaps not all kind of aac settings are supported, etc.
    Note that the Symbian code also contains test sources (tsrc folders and the like), thus searching for KMMFFourCCCodeAAC in the code browser on http://developer.symbian.org may reveal something

  3. #3
    Registered User
    Join Date
    Aug 2009
    Posts
    14

    Re: AAC via CMdaAudioOutputStream on Simbyan^3

    Looks like I am wronlgly reading the acc stream header. it's working now after some hack with sample rate value.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: AAC via CMdaAudioOutputStream on Simbyan^3

    Hi ssolovie,

    I have similar problem, I am streaming MP3 with 44100 sample rate and 2 channels. I set:

    Code:
    TMdaAudioDataSettings iStreamSettings;
    iStreamSettings.iSampleRate = TMdaAudioDataSettings::ESampleRate44100Hz;
    iStreamSettings.iChannels = TMdaAudioDataSettings::EChannelsStereo;
    TFourCC iStreamFourCC;
    iStreamFourCC.Set( KMMFFourCCCodeMP3 );
    Then I call
    Code:
    iStreamOutput->Open( &iStreamSettings );
    and finally in the MaoscOpenComplete I call again
    Code:
    TRAPD( err, iStreamOutput->SetAudioPropertiesL(iStreamSettings.iSampleRate, iStreamSettings.iChannels) ); // This is probably not necessary
    iStreamOutput->SetDataTypeL( iStreamFourCC.FourCC() )
    On S60 5th the music playback is fine, while on S^3 I hear the noise only. Any tips what has to be changed? How did you solve your problem? I have tested it with the 32kbps AAC with the same result.

    BR
    STeN

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: AAC via CMdaAudioOutputStream on Simbyan^3

    Hi,

    the problem is solved - the CMdaAudioOutputStream::Open() parameter is kept in SDK probably only for historical reasons (my guess) - so passing NULL is fine there. Then call SetDataTypeL() before calling Open() and in the MaoscOpenComplete callback use the SetAudioPropertiesL and SetVolume to set the stream parameters.

    Then it works on S^3 for both AAC, MP3 and probably all other supported formats (on E7 phone WMA or AC3 might be interesting options, but the set of supported formats is wider and probably differs across devices set)

    BR
    STeN

Similar Threads

  1. Does CMdaAudioOutputStream support HE-AAC/AAC+/aacPlus?
    By espenr in forum Symbian Media (Closed)
    Replies: 1
    Last Post: 2011-01-05, 15:32
  2. Replies: 3
    Last Post: 2010-01-14, 15:33
  3. [moved] AAC recording in Symbian 3rd edition.
    By sachinM in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2009-11-17, 15:00
  4. Replies: 9
    Last Post: 2009-01-19, 17:00
  5. CMdaAudioOutputStream to play AAC+
    By sameet in forum Symbian Media (Closed)
    Replies: 6
    Last Post: 2006-12-04, 06:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •