aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Effect/srconverter
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-09-12 13:38:37 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2008-09-12 13:38:37 +0000
commit07ae1ec8ca7452899b65b579e65fb1ad28764c58 (patch)
treecde844c7c82fb29c9860a974ac8af99d64751b31 /src/plugins/Effect/srconverter
parent1ceaa9a2f4394853914d95fe2b7aa3d4b44c786e (diff)
downloadqmmp-07ae1ec8ca7452899b65b579e65fb1ad28764c58.tar.gz
qmmp-07ae1ec8ca7452899b65b579e65fb1ad28764c58.tar.bz2
qmmp-07ae1ec8ca7452899b65b579e65fb1ad28764c58.zip
enabled effect plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@549 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Effect/srconverter')
-rw-r--r--src/plugins/Effect/srconverter/srconverter.cpp4
-rw-r--r--src/plugins/Effect/srconverter/srconverter.h8
2 files changed, 6 insertions, 6 deletions
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