Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Equalizer in qt gui



  • i just want know how make equalizer in qt gui. can someone help pls because i want to have to my application in android to have an equalizer.


  • Moderators

    @Unknown.46
    Since you were not really specific here are the elements you can place in Column (QML) / QHBoxLayout (QtWidgets):
    QML: Slider
    QtWidgets: QSlider



  • @raven-worx
    but how do i use it in my application which when i change bass it will also changed the bass output of my android based on what i have changed?


  • Moderators

    @Unknown.46
    sorry, but do you think you have enough experience to accomplish this?

    Anyway this would only be possible (make sense using Qt) when you also do the audio output from within Qt. Is this the case? Or do you want to control the sound system-wide?
    For the later it doesn't make much sense to use Qt at all.



  • @raven-worx said in Equalizer in qt gui:

    Anyway this would only be possible (make sense using Qt) when you also do the audio output from within Qt. Is this the case?

    I know this it's an old unsolved post and yes this is my case, you've said that this will be possible only using Qt.. how can it be implemented?? It seems that QMediaPlayer is doing a great job in recognition and playing the files but I cannot get access to the stream before it sending it to the device - speakers.
    even <QAudioDecoder> is not doing a great job... at least I'm receiving the AudioBuffer but..... poor quality in doing a good job in decoding it...
    How to get the stream out in order to be able to do some optimisation on its frequencies?..


  • Moderators

    @arsinte_andrei
    i would say this heavily depends on the requirements you have
    You can also use vlc-qt and it's Equalizer capabilities
    This would also give you the benefit of support for multiple audio codecs by letting vlc do the decoding. But you will have to build vlc-qt yourself for android though.



  • @raven-worx
    I've tried the libvlc - but the quality of the video on my raspberry pi is very poor compared to the quality of QMediaPlayer - just playing audio is fine.. but not for video.. and also the video frame take the whole window even when I'm playing only mp3s
    so I'm looking just for a simple way to implement in Qt an equalizer - I have seen a lot of examples who are more similar (in terms of how to calculate the frequency and to boost it) so all I need is to take a file and if is an audio file... where the video isAvailable = false wish to process it to have a bit of control..
    On my Raspberry Pi I have a Digi Amp+ and is working absolutely nice.. just a bit of adjustment and everything will be perfect.
    So any idea how to take the stream from the QMultimedia? and a bit of a hint on how to process it??


  • Moderators

    @arsinte_andrei said in Equalizer in qt gui:

    So any idea how to take the stream from the QMultimedia?

    basically QAudioOutput class

    Also you may want to take a look at the Spectrum example and the Audio Output example

    I have never done that, so i cant help you with details.
    But i think there other resources on the web how to implement an equalizer on a raw audio stream.


Log in to reply