From 07ae1ec8ca7452899b65b579e65fb1ad28764c58 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Fri, 12 Sep 2008 13:38:37 +0000 Subject: enabled effect plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@549 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Effect/srconverter/srconverter.cpp | 4 ++-- src/plugins/Effect/srconverter/srconverter.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/Effect') diff --git a/src/plugins/Effect/srconverter/srconverter.cpp b/src/plugins/Effect/srconverter/srconverter.cpp index 9d7937e7e..9cfd56361 100644 --- a/src/plugins/Effect/srconverter/srconverter.cpp +++ b/src/plugins/Effect/srconverter/srconverter.cpp @@ -97,7 +97,7 @@ const ulong SRConverter::process(char *in_data, const ulong size, char **out_dat return wbytes; } -void SRConverter::configure(ulong freq, int chan, int res) +void SRConverter::configure(quint32 freq, int chan, int res) { Effect::configure(freq, chan, res); freeSRC(); @@ -114,7 +114,7 @@ void SRConverter::configure(ulong freq, int chan, int res) } } -const ulong SRConverter::frequency() +const quint32 SRConverter::sampleRate() { return m_overSamplingFs; } diff --git a/src/plugins/Effect/srconverter/srconverter.h b/src/plugins/Effect/srconverter/srconverter.h index 3638383f9..f96079868 100644 --- a/src/plugins/Effect/srconverter/srconverter.h +++ b/src/plugins/Effect/srconverter/srconverter.h @@ -40,20 +40,20 @@ public: virtual ~SRConverter(); const ulong process(char *in_data, const ulong size, char **out_data); - void configure(ulong freq, int chan, int res); - const ulong frequency(); + void configure(quint32 freq, int chan, int res); + const quint32 sampleRate(); private: void freeSRC(); SRC_STATE *m_src_state; SRC_DATA m_src_data; - int m_overSamplingFs; + quint32 m_overSamplingFs; int m_srcError; int m_converter_type; bool m_isSrcAlloc; float *m_srcIn, *m_srcOut; short *m_wOut; - ulong m_freq; + quint32 m_freq; }; #endif -- cgit v1.2.3-13-gbd6f