summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2010-03-01 14:39:17 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2010-03-01 14:41:41 (GMT)
commit7afc26c45ba19ba1fa077629e388be32ea1664bc (patch)
tree81f6389b957aa9f4d36b8c8748fd219ef2d0c85f /src
parent3e03276736d89e1ab214b50d57bf2ba6f6d560f7 (diff)
downloadQt-7afc26c45ba19ba1fa077629e388be32ea1664bc.zip
Qt-7afc26c45ba19ba1fa077629e388be32ea1664bc.tar.gz
Qt-7afc26c45ba19ba1fa077629e388be32ea1664bc.tar.bz2
compile
Diffstat (limited to 'src')
-rw-r--r--src/multimedia/qml/qsoundeffect_pulse_p.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/multimedia/qml/qsoundeffect_pulse_p.cpp b/src/multimedia/qml/qsoundeffect_pulse_p.cpp
index ec851aa..f7870c2 100644
--- a/src/multimedia/qml/qsoundeffect_pulse_p.cpp
+++ b/src/multimedia/qml/qsoundeffect_pulse_p.cpp
@@ -63,7 +63,7 @@
#include "qsoundeffect_pulse_p.h"
-#if(Q_WS_MAEMO_5)
+#if defined(Q_WS_MAEMO_5)
#include <pulse/ext-stream-restore.h>
#endif
@@ -155,7 +155,7 @@ private:
lock();
m_context = pa_context_new(m_mainLoopApi, QString(QLatin1String("QtPulseAudio:%1")).arg(::getpid()).toAscii().constData());
-#if(Q_WS_MAEMO_5)
+#if defined(Q_WS_MAEMO_5)
pa_context_set_state_callback(m_context, context_state_callback, this);
#endif
if (m_context == 0) {
@@ -183,7 +183,7 @@ private:
m_prepared = false;
}
-#if(Q_WS_MAEMO_5)
+#if defined(Q_WS_MAEMO_5)
static void context_state_callback(pa_context *c, void *userdata)
{
PulseDaemon *self = reinterpret_cast<PulseDaemon*>(userdata);
@@ -299,7 +299,7 @@ void QSoundEffectPrivate::play()
pa_volume_t m_vol = PA_VOLUME_NORM;
daemon()->lock();
-#if(Q_WS_MAEMO_5)
+#if defined(Q_WS_MAEMO_5)
m_vol = PA_VOLUME_NORM/100*((daemon()->volume()+m_vol)/2);
#endif
pa_operation_unref(