From c9d69d13e214c0071a65ba967276f057d204f8f8 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 22 Sep 2009 15:29:54 +0000 Subject: enabled sndfile plugin git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1248 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/Input/sndfile/decoder_sndfile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/Input/sndfile/decoder_sndfile.cpp') 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); } -- cgit v1.2.3-13-gbd6f