summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/tapiir/files/tapiir-0.7.1-gcc4.patch')
-rw-r--r--media-sound/tapiir/files/tapiir-0.7.1-gcc4.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/media-sound/tapiir/files/tapiir-0.7.1-gcc4.patch b/media-sound/tapiir/files/tapiir-0.7.1-gcc4.patch
new file mode 100644
index 000000000000..cdd68e1be0b8
--- /dev/null
+++ b/media-sound/tapiir/files/tapiir-0.7.1-gcc4.patch
@@ -0,0 +1,34 @@
+--- src/MTD.hxx.old 2006-11-01 14:18:31.000000000 +0100
++++ src/MTD.hxx 2006-11-01 14:18:34.000000000 +0100
+@@ -193,22 +193,22 @@
+
+ /****************************** specializations ******************************/
+
+-inline float MTD<int,short>::FromGain(const int& g) const { return float(g)/256.; }
+-inline float MTD<int,float>::FromGain(const int& g) const { return float(g)/256.; }
++template <> inline float MTD<int,short>::FromGain(const int& g) const { return float(g)/256.; }
++template <> inline float MTD<int,float>::FromGain(const int& g) const { return float(g)/256.; }
+
+-inline int MTD<int,short>::ToGain(const float& f) const { return (int)(f*256.); }
+-inline int MTD<int,float>::ToGain(const float& f) const { return (int)(f*256.); }
++template <> inline int MTD<int,short>::ToGain(const float& f) const { return (int)(f*256.); }
++template <> inline int MTD<int,float>::ToGain(const float& f) const { return (int)(f*256.); }
+
+-inline void MTD<float,short>::Clip( float& f) const
++template <> inline void MTD<float,short>::Clip( float& f) const
+ { if (f>32767.) f = 32767.; else if (f<-32767.) f = -32767.; }
+-inline void MTD<int ,short>::Clip( int& i) const
++template <> inline void MTD<int ,short>::Clip( int& i) const
+ { if (i>32767) i = 32767; else if (i<-32767) i = -32767; }
+-inline void MTD<float,float>::Clip( float& f) const
++template <> inline void MTD<float,float>::Clip( float& f) const
+ { if (f>1.) f = 1.; else if (f<-1.) f = -1.; }
+
+
+-inline void MTD<int,float>::MulAdj( int& i) const { i>>=8; }
+-inline void MTD<int,short>::MulAdj( int& i) const { i>>=8; }
++template <> inline void MTD<int,float>::MulAdj( int& i) const { i>>=8; }
++template <> inline void MTD<int,short>::MulAdj( int& i) const { i>>=8; }
+
+ /*****************************************************************************/
+