From 45b203105b980162549fc97106c6353a23571106 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 26 Jul 2016 08:58:59 +0000 Subject: removed function DecoderFactory::supports git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@6603 90c681e8-e032-0410-971d-27865f9a5e38 --- .../Input/sndfile/decodersndfilefactory.cpp | 27 ---------------------- 1 file changed, 27 deletions(-) (limited to 'src/plugins/Input/sndfile/decodersndfilefactory.cpp') diff --git a/src/plugins/Input/sndfile/decodersndfilefactory.cpp b/src/plugins/Input/sndfile/decodersndfilefactory.cpp index bfca5c713..f66a4f192 100644 --- a/src/plugins/Input/sndfile/decodersndfilefactory.cpp +++ b/src/plugins/Input/sndfile/decodersndfilefactory.cpp @@ -36,33 +36,6 @@ #define WAVE_FORMAT_MULAW 0x0007 // DecoderSndFileFactory -bool DecoderSndFileFactory::supports(const QString &source) const -{ - if (source.endsWith(".wav", Qt::CaseInsensitive)) - { - //try to open the file - SF_INFO snd_info; -#ifdef Q_OS_WIN - SNDFILE *sndfile = sf_wchar_open(reinterpret_cast(source.utf16()), SFM_READ, &snd_info); -#else - SNDFILE *sndfile = sf_open(source.toLocal8Bit().constData(), SFM_READ, &snd_info); -#endif - if (!sndfile) - return false; - - sf_close (sndfile); - sndfile = 0; - return true; - } - foreach(QString filter, properties().filters) - { - QRegExp regexp(filter, Qt::CaseInsensitive, QRegExp::Wildcard); - if (regexp.exactMatch(source)) - return true; - } - return false; -} - bool DecoderSndFileFactory::canDecode(QIODevice *input) const { char buf[36]; -- cgit v1.2.3-13-gbd6f