diff options
Diffstat (limited to 'src/plugins/Effect')
| -rw-r--r-- | src/plugins/Effect/srconverter/srconverter.cpp | 7 | ||||
| -rw-r--r-- | src/plugins/Effect/srconverter/srconverter.h | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/Effect/srconverter/srconverter.cpp b/src/plugins/Effect/srconverter/srconverter.cpp index f6523ccd8..ca871e409 100644 --- a/src/plugins/Effect/srconverter/srconverter.cpp +++ b/src/plugins/Effect/srconverter/srconverter.cpp @@ -99,7 +99,6 @@ ulong SRConverter::process(char *in_data, const ulong size, char **out_data) void SRConverter::configure(quint32 freq, int chan, int res) { - Effect::configure(freq, chan, res); freeSRC(); uint rate = freq; { @@ -112,11 +111,7 @@ void SRConverter::configure(quint32 freq, int chan, int res) else qDebug("SRConverter: src_new(): %s", src_strerror(m_srcError)); } -} - -quint32 SRConverter::sampleRate() -{ - return m_overSamplingFs; + Effect::configure(m_overSamplingFs, chan, res); } void SRConverter::freeSRC() diff --git a/src/plugins/Effect/srconverter/srconverter.h b/src/plugins/Effect/srconverter/srconverter.h index 2258e6594..e596c693a 100644 --- a/src/plugins/Effect/srconverter/srconverter.h +++ b/src/plugins/Effect/srconverter/srconverter.h @@ -41,7 +41,6 @@ public: ulong process(char *in_data, const ulong size, char **out_data); void configure(quint32 freq, int chan, int res); - quint32 sampleRate(); private: void freeSRC(); |
