diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-09-22 15:29:54 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-09-22 15:29:54 +0000 |
| commit | c9d69d13e214c0071a65ba967276f057d204f8f8 (patch) | |
| tree | a4900266b80116847b0342da2fc86fbb26595dc0 /src/plugins/Input/sndfile/decoder_sndfile.cpp | |
| parent | 362d4e2b4f57a39efeef52a3fd7b5dc432207c0a (diff) | |
| download | qmmp-c9d69d13e214c0071a65ba967276f057d204f8f8.tar.gz qmmp-c9d69d13e214c0071a65ba967276f057d204f8f8.tar.bz2 qmmp-c9d69d13e214c0071a65ba967276f057d204f8f8.zip | |
enabled sndfile plugin
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1248 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/Input/sndfile/decoder_sndfile.cpp')
| -rw-r--r-- | src/plugins/Input/sndfile/decoder_sndfile.cpp | 8 |
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); } |
