Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Feb 2009

    Question How do I set and store a new equalizer preset used by the audio player on a N95?

    Dear all!

    Background: I have successfully built and installed the example application Image:PlayerExtrasExample.zip on my Nokia N95 device using the demo signing site from Symbian (symbiansigned.com)

    Problem: However, when I try to extend the application, trying to create a new Preset for the equalizer I run into various trouble:

    The new equalizer preset itself is indeed created and I can see and choose it in the equalizer list from the N95 media player equalizer preset list. BUT the equalizer band settings I wished to store within this new presest is not stored at all. I.e only the default settings are contained within the new equalizer preset.

    Can any hint me what I do wrong here?

    The altered code is stated below:

    TInt32 levelMin, levelMax;

    // this exists ok on target
    if(iMdaAudioPlayerUtility) {

    if(iAudioEqualizerUtility == NULL)
    iAudioEqualizerUtility = CAudioEqualizerUtility::NewL(*iMdaAudioPlayerUtility); // this exists ok on target

    iBandNum = iAudioEqualizerUtility->Equalizer().NumberOfBands(); //this is printed in the device N95 and is correctly = 8
    iAudioEqualizerUtility->Equalizer().DbLevelLimits(levelMin, levelMax); //these levels are retrieved and printed on device N95

    TInt nn = iAudioEqualizerUtility->NumberOfPreDefinedPresets();

    TBuf<50> buffer;
    buffer = iAudioEqualizerUtility->GetPresetL(nn-1);
    iBuf = buffer; // this preset is printed correctly on target N95 (= Rock)

    // used to create a dummy preset name to for testing purpose.
    _LIT( KHello, "AABBCC" );
    TBuf<100> something;

    // here I just try to set a value on the fourth equalizer band in order to try to verify if this value is really stored in the device
    // However, this new band value is NOT stored. Why not????

    iAudioEqualizerUtility->Equalizer().SetBandLevelL(4, 11);

    //This new equalizer preset name shows upp after creation in the media
    // player on the N95 device. But the band value I wanted to store did not show upp. Instead band number 4 is set to deafault value, why??
    iAudioEqualizerUtility->CreatePresetL(something, iAudioEqualizerUtility->Equalizer());


    Note: I apply all capabilities allowed using the demo signing at symbiansigning.com and have set the following capabilities in the .mmp file: ReadDeviceData ReadUserData SwEvent TrustedUI UserEnvironment WriteDeviceData WriteUserData
    Last edited by paulcronholm@gmail.com; 2009-03-17 at 12:15.

Similar Threads

  1. j2me audio streaming with two players
    By viheaho in forum Mobile Java Media (Graphics & Sounds)
    Replies: 10
    Last Post: 2010-03-12, 13:28
  2. Wave Player using CMdaAudioPlayerUtility
    By deCoder in forum Symbian
    Replies: 8
    Last Post: 2008-06-11, 13:13
  3. Media Player 6230
    By agoff in forum Streaming and Video
    Replies: 5
    Last Post: 2005-01-19, 05:06

Posting Permissions

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