×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    80

    [SOLVED] How to implement an equalizer for my Phonon powered audio player

    Good day

    I implemented an audio player using Qt Widgets and Phonon for Symbian Anna / Belle phones. My Qt and C++ skills are very basic so far, but at least the app works now and can play music.
    It would be nice to have an equalizer or something to adjust the sound (bass, middle, treble as minimum) as next step.
    There seems to be no easy solution directly in Phonon; but i found header files like this one which could be helpful if one knows how to use it: audioequalizerutility.h

    Does anybody has an idea how i can implement an equalizer or point me to the right direction?

    Thank you,
    Johnny
    Last edited by Johnny_B; 2011-11-23 at 11:08.

  2. #2
    Registered User
    Join Date
    Nov 2011
    Posts
    80

    Re: How to implement an equalizer for my Phonon powered audio player

    Aha, maybe it works directly using Phonon::Effects.
    http://doc.qt.nokia.com/latest/phonon-effect.html
    I'll give it a try...

  3. #3
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: How to implement an equalizer for my Phonon powered audio player

    The Audio Streaming Example v2.1
    allows to study the Symbian audio streaming logic.
    On the supported devices the method void CAudioStreamEngine::Play() could contain the code after buffer is ok which query and adjust the band level before opening the stream :

    TInt bandLevel=32;
    iBandId=2;
    TRAPD(err, iAudioEqualizer = CAudioEqualizer::NewL(*iOutputStream));
    TRAP(err, iAudioEqualizer->SetBandLevelL(iBandId, bandLevel));

    /0

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    80

    Re: How to implement an equalizer for my Phonon powered audio player

    Devnull, thanks for your hints.

    I was able to use the Phonon effects in the meantime which includes an equalizer and some other audio effects like loudness and stereo widening as well.
    It doesn't work stable yet at all, so the application hangs forever when an equalizer is used and then the audio track changes to the next in the playlist... But at least i can go on working on it and hopefully can fix the issues soon.

    If somebody else wants to use audio effects; have a look in the demo project "qmediaplayer" found in the QtSDK which was helpful for me.

Similar Threads

  1. Signing NFL skins for the Media Player, Radio and Equalizer
    By D@nilYcH in forum [Archived] Flash Lite on Nokia Devices
    Replies: 14
    Last Post: 2011-11-01, 07:17
  2. Replies: 1
    Last Post: 2009-12-17, 06:45
  3. Change Equalizer of Standart Audio Player
    By EQual in forum Symbian Media (Closed)
    Replies: 4
    Last Post: 2009-10-18, 14:22
  4. How do I set and store a new equalizer preset used by the audio player on a N95?
    By paulcronholm@gmail.com in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2009-03-16, 16:02
  5. how to implement next/previous in audio player
    By saransishta in forum Symbian C++
    Replies: 1
    Last Post: 2007-06-11, 17:10

Posting Permissions

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