diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-17 17:10:32 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2011-10-17 17:10:32 +0000 |
| commit | aa12e69d307394b1d1afc1f61537b43cf81e47d5 (patch) | |
| tree | 7acd6204b8925f05db20991c201dde7dffd2c30f /src | |
| parent | 6001cbf024d3bd902edb19d4e770efb7f37e14d0 (diff) | |
| download | qmmp-aa12e69d307394b1d1afc1f61537b43cf81e47d5.tar.gz qmmp-aa12e69d307394b1d1afc1f61537b43cf81e47d5.tar.bz2 qmmp-aa12e69d307394b1d1afc1f61537b43cf81e47d5.zip | |
Sony Media Wave 64 (W64) support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@2404 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src')
| -rw-r--r-- | src/plugins/Input/sndfile/decoder_sndfile.cpp | 3 | ||||
| -rw-r--r-- | src/plugins/Input/sndfile/decodersndfilefactory.cpp | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/Input/sndfile/decoder_sndfile.cpp b/src/plugins/Input/sndfile/decoder_sndfile.cpp index 9195a8469..a5a8f93fc 100644 --- a/src/plugins/Input/sndfile/decoder_sndfile.cpp +++ b/src/plugins/Input/sndfile/decoder_sndfile.cpp @@ -65,6 +65,9 @@ bool DecoderSndFile::initialize() m_totalTime = snd_info.frames * 1000 / m_freq; m_bitrate = QFileInfo(m_path).size () * 8.0 / m_totalTime + 0.5; + if((snd_info.format & SF_FORMAT_SUBMASK) == SF_FORMAT_FLOAT) + sf_command (m_sndfile, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE); + configure(m_freq, chan, Qmmp::PCM_S16LE); qDebug("DecoderSndFile: detected format: %08X", snd_info.format); qDebug("DecoderSndFile: initialize succes"); diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.cpp b/src/plugins/Input/sndfile/decodersndfilefactory.cpp index 8f428cc8d..771317abb 100644 --- a/src/plugins/Input/sndfile/decodersndfilefactory.cpp +++ b/src/plugins/Input/sndfile/decodersndfilefactory.cpp @@ -62,7 +62,7 @@ const DecoderProperties DecoderSndFileFactory::properties() const DecoderProperties properties; properties.name = tr("Sndfile Plugin"); properties.filters << "*.wav" << "*.au" << "*.snd" << "*.aif" << "*.aiff" << "*.8svx"; - properties.filters << "*.sph" << "*.sf" << "*.voc"; + properties.filters << "*.sph" << "*.sf" << "*.voc" << "*.w64"; properties.description = tr("PCM Files"); //properties.contentType = ""; properties.shortName = "sndfile"; |
