~ubuntu-branches/ubuntu/saucy/phonon-backend-gstreamer/saucy-proposed

« back to all changes in this revision

Viewing changes to gstreamer/audioeffect.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2011-04-15 14:43:30 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110415144330-7uif3319lxdu4ltt
Tags: 4:4.7.0really4.5.0-0ubuntu2
* New upstream release
* Add kubuntu_02_install_codec.diff to fix codec install

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
    along with this library.  If not, see <http://www.gnu.org/licenses/>.
16
16
*/
17
17
 
18
 
#include "common.h"
19
18
#include "backend.h"
20
19
#include "medianode.h"
21
20
#include "effectmanager.h"
22
21
#include "audioeffect.h"
23
 
#include "gsthelper.h"
24
22
 
25
23
#include <gst/gst.h>
26
24
#ifndef QT_NO_PHONON_EFFECT
38
36
    QList<EffectInfo*> audioEffects = backend->effectManager()->audioEffects();
39
37
    if (effectId >= 0 && effectId < audioEffects.size()) {
40
38
        m_effectName = audioEffects[effectId]->name();
 
39
        // Reverse mapped name back to GStreamer name, see effectmanager.cpp for
 
40
        // more information on this.
 
41
        if (m_effectName == QLatin1String("KEqualizer")) {
 
42
            m_effectName = QString("equalizer-10bands");
 
43
        }
41
44
        init();
42
45
    } else {
43
46
        qWarning() << Q_FUNC_INFO << ": Effect ID (" << effectId << ") out of range (" << audioEffects.size() << ")!";