summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/bassboost.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-01-11 15:30:15 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2010-01-11 15:30:15 (GMT)
commite53306725e52407146304df9d8d3a65920fc3e8d (patch)
treeb3b8f4d25616ac8171af60f86ad1c060d26ac33c /src/3rdparty/phonon/mmf/bassboost.cpp
parent483893142dcec15c646ef997309dcede76466766 (diff)
downloadQt-e53306725e52407146304df9d8d3a65920fc3e8d.zip
Qt-e53306725e52407146304df9d8d3a65920fc3e8d.tar.gz
Qt-e53306725e52407146304df9d8d3a65920fc3e8d.tar.bz2
Delayed creation of audio effect object until audio is initialized
When applying effects to an audio stream, we must ensure that the MMF utility API (CMdaAudioPlayerUtility or CVideoPlayerUtility) instance has loaded a controller before calling attempting to create a CAudioEffect- derived object. If the controller has not been loaded, construction of the effect object will fail. Even if we mitigate against this, calling CAudioEffect::ApplyL() will only have an effect if there is a controller object - or more precisely, a DevSound instance - on which to apply the effect. This patch delays construction of the effect object until the MediaObject has transitioned out of the LoadingState, indicating that an underlying DevSound instance will have been created. Task-number: QTBUG-4659 Reviewed-by: Espen Riskedal
Diffstat (limited to 'src/3rdparty/phonon/mmf/bassboost.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/bassboost.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/mmf/bassboost.cpp b/src/3rdparty/phonon/mmf/bassboost.cpp
index 4edd102..9f62ecc 100644
--- a/src/3rdparty/phonon/mmf/bassboost.cpp
+++ b/src/3rdparty/phonon/mmf/bassboost.cpp
@@ -40,7 +40,7 @@ void BassBoost::parameterChanged(const int,
Q_ASSERT_X(false, Q_FUNC_INFO, "BassBoost has no parameters");
}
-void BassBoost::connectAudioPlayer(AudioPlayer::NativePlayer *player)
+void BassBoost::createEffect(AudioPlayer::NativePlayer *player)
{
CBassBoost *ptr = 0;
QT_TRAP_THROWING(ptr = CBassBoost::NewL(*player));