aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Input/sndfile/decoder_sndfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/Input/sndfile/decoder_sndfile.cpp')
-rw-r--r--src/plugins/Input/sndfile/decoder_sndfile.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Input/sndfile/decoder_sndfile.cpp b/src/plugins/Input/sndfile/decoder_sndfile.cpp
index 77e4438c2..45ea15cbe 100644
--- a/src/plugins/Input/sndfile/decoder_sndfile.cpp
+++ b/src/plugins/Input/sndfile/decoder_sndfile.cpp
@@ -30,8 +30,8 @@
// Decoder class
-DecoderSndFile::DecoderSndFile(QObject *parent, DecoderFactory *d, Output *o, const QString &path)
- : Decoder(parent, d, o)
+DecoderSndFile::DecoderSndFile(const QString &path)
+ : Decoder()
{
m_path = path;
m_bitrate = 0;
@@ -91,12 +91,12 @@ int DecoderSndFile::bitrate()
return m_bitrate;
}
-qint64 DecoderSndFile::readAudio(char *audio, qint64 maxSize)
+qint64 DecoderSndFile::read(char *audio, qint64 maxSize)
{
return sizeof(short)* sf_read_short (m_sndfile, (short *)audio, maxSize / sizeof(short));
}
-void DecoderSndFile::seekAudio(qint64 pos)
+void DecoderSndFile::seek(qint64 pos)
{
sf_seek(m_sndfile, m_freq * pos/1000, SEEK_SET);
}