diff options
author | joerg <joerg> | 2011-08-31 14:43:42 +0000 |
---|---|---|
committer | joerg <joerg> | 2011-08-31 14:43:42 +0000 |
commit | 44df2725361175c896b62470850a40fe0b6d7087 (patch) | |
tree | 75ffd7e2e93ffa678713e5d816797223ccd0dc9f /audio/akode/patches | |
parent | 800f8e94eb8d1305a14cd6a42ee1f05d2f259985 (diff) | |
download | pkgsrc-44df2725361175c896b62470850a40fe0b6d7087.tar.gz |
Fix build with clang by avoiding shadowing in template definitions.
Diffstat (limited to 'audio/akode/patches')
4 files changed, 61 insertions, 0 deletions
diff --git a/audio/akode/patches/patch-akode-lib-converter.cpp b/audio/akode/patches/patch-akode-lib-converter.cpp new file mode 100644 index 00000000000..5bcd18258a8 --- /dev/null +++ b/audio/akode/patches/patch-akode-lib-converter.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-akode-lib-converter.cpp,v 1.1 2011/08/31 14:43:43 joerg Exp $ + +--- akode/lib/converter.cpp.orig 2011-08-30 13:57:17.000000000 +0000 ++++ akode/lib/converter.cpp +@@ -26,7 +26,7 @@ namespace aKode { + + Converter::Converter(int sample_width) : m_sample_width(sample_width) {} + +-template<typename T, typename S, template<typename T> class ArithmT, template<typename S> class ArithmS> ++template<typename T, typename S, template<typename U> class ArithmT, template<typename U> class ArithmS> + static bool __doFrameFP(AudioFrame* in, AudioFrame* out, int sample_width) + { + AudioConfiguration config = *in; diff --git a/audio/akode/patches/patch-akode-lib-crossfader.cpp b/audio/akode/patches/patch-akode-lib-crossfader.cpp new file mode 100644 index 00000000000..4c363933d51 --- /dev/null +++ b/audio/akode/patches/patch-akode-lib-crossfader.cpp @@ -0,0 +1,22 @@ +$NetBSD: patch-akode-lib-crossfader.cpp,v 1.1 2011/08/31 14:43:43 joerg Exp $ + +--- akode/lib/crossfader.cpp.orig 2011-08-30 13:55:31.000000000 +0000 ++++ akode/lib/crossfader.cpp +@@ -27,7 +27,7 @@ namespace aKode { + CrossFader::CrossFader(unsigned int time) : time(time),pos(0) {} + + // T is the input/output type, S is the fast arithmetics type, Div is a division method +-template<typename T, typename S, template<typename S> class Arithm> ++template<typename T, typename S, template<typename U> class Arithm> + static bool _doFrame(AudioFrame* in, int& pos, AudioFrame* frame) + { + T** indata1 = (T**)in->data; +@@ -66,7 +66,7 @@ static bool _doFrame(AudioFrame* in, int + } + + // T is the input/output type, S is the fast arithmetics type, Arithm defines devisions +-template<typename T, typename S, template<typename S> class Arithm> ++template<typename T, typename S, template<typename U> class Arithm> + static bool _readFrame(AudioFrame* in, int& pos, AudioFrame* frame) + { + T** indata = (T**)frame->data; diff --git a/audio/akode/patches/patch-akode-lib-fast_resampler.cpp b/audio/akode/patches/patch-akode-lib-fast_resampler.cpp new file mode 100644 index 00000000000..b8b772dcaae --- /dev/null +++ b/audio/akode/patches/patch-akode-lib-fast_resampler.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-akode-lib-fast_resampler.cpp,v 1.1 2011/08/31 14:43:43 joerg Exp $ + +--- akode/lib/fast_resampler.cpp.orig 2011-08-30 13:31:41.000000000 +0000 ++++ akode/lib/fast_resampler.cpp +@@ -37,7 +37,7 @@ FastResampler::FastResampler() : speed(1 + // A fast resampling by linear interpolation + // I assume you know binary arithmetics and convertions if you're reading this + // T is the input/output type, Arithm defines the used arithmetic +-template<typename T, typename S, template<typename S> class Arithm> ++template<typename T, typename S, template<typename U> class Arithm> + static bool _doBuffer(AudioFrame* in, AudioFrame* out, float speed, unsigned sample_rate) + { + unsigned long vt_pos_start = 0; // virtual positions of new sample diff --git a/audio/akode/patches/patch-akode-lib-volumefilter.cpp b/audio/akode/patches/patch-akode-lib-volumefilter.cpp new file mode 100644 index 00000000000..171c5159227 --- /dev/null +++ b/audio/akode/patches/patch-akode-lib-volumefilter.cpp @@ -0,0 +1,13 @@ +$NetBSD: patch-akode-lib-volumefilter.cpp,v 1.1 2011/08/31 14:43:43 joerg Exp $ + +--- akode/lib/volumefilter.cpp.orig 2011-08-30 13:56:43.000000000 +0000 ++++ akode/lib/volumefilter.cpp +@@ -29,7 +29,7 @@ namespace aKode { + VolumeFilter::VolumeFilter() : m_volume(0) {} + + // T is the input/output type, S is the fast arithmetics type, Arithm is a division definition +-template<typename T, typename S, template<typename S> class Arithm> ++template<typename T, typename S, template<typename U> class Arithm> + static bool _doFrame(AudioFrame* in, AudioFrame* out, int volume) + { + T** indata = (T**)in->data; |