summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2011-10-16 10:41:36 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2011-10-16 10:41:36 +0000
commit53c0114aa0dcbfe0b33956d4155a0428783f27ed (patch)
tree3dea45f053e1039ab93ec4a5b8dc5adf9791a4ae /media-libs/phonon/files
parentVersion bump; remove old (diff)
downloadgentoo-2-53c0114aa0dcbfe0b33956d4155a0428783f27ed.tar.gz
gentoo-2-53c0114aa0dcbfe0b33956d4155a0428783f27ed.tar.bz2
gentoo-2-53c0114aa0dcbfe0b33956d4155a0428783f27ed.zip
Add pulseaudio-1 build fix, bug 386489; remove old
(Portage version: 2.1.10.27/cvs/Linux x86_64)
Diffstat (limited to 'media-libs/phonon/files')
-rw-r--r--media-libs/phonon/files/phonon-4.5.0-pow.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/media-libs/phonon/files/phonon-4.5.0-pow.patch b/media-libs/phonon/files/phonon-4.5.0-pow.patch
new file mode 100644
index 000000000000..0111a20412ae
--- /dev/null
+++ b/media-libs/phonon/files/phonon-4.5.0-pow.patch
@@ -0,0 +1,27 @@
+commit 436d5379abe83c53c652d8a251f7ab504a1523df
+Author: Colin Guthrie <colin@mageia.org>
+Date: Thu Aug 4 16:55:47 2011 +0100
+
+ pulse: Use qPow() as pow() is sometimes not found.
+
+diff --git a/phonon/pulsestream.cpp b/phonon/pulsestream.cpp
+index d1e6711..e129f1b 100644
+--- a/phonon/pulsestream.cpp
++++ b/phonon/pulsestream.cpp
+@@ -21,6 +21,7 @@
+ */
+
+ #include "pulsestream_p.h"
++#include <QtCore/qmath.h>
+
+ QT_BEGIN_NAMESPACE
+
+@@ -81,7 +82,7 @@ void PulseStream::setVolume(const pa_cvolume *volume)
+ // AudioOutput expects the "backend" to supply values that have been
+ // adjusted for Stephens' law, so we need to fudge them accordingly
+ // so that the %ages match up in KMix/the application's own slider.
+- emit volumeChanged(pow(vol, VOLTAGE_TO_LOUDNESS_EXPONENT));
++ emit volumeChanged(qPow(vol, VOLTAGE_TO_LOUDNESS_EXPONENT));
+ }
+ }
+