Chris@1698: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@1698: Chris@1698: /* Chris@1698: Sonic Visualiser Chris@1698: An audio file viewer and annotation editor. Chris@1698: Centre for Digital Music, Queen Mary, University of London. Chris@1698: This file copyright 2013 Chris Cannam. Chris@1698: Chris@1698: This program is free software; you can redistribute it and/or Chris@1698: modify it under the terms of the GNU General Public License as Chris@1698: published by the Free Software Foundation; either version 2 of the Chris@1698: License, or (at your option) any later version. See the file Chris@1698: COPYING included with this distribution for more information. Chris@1698: */ Chris@1698: Chris@1698: #ifndef SV_UNSUPPORTED_FORMAT_H Chris@1698: #define SV_UNSUPPORTED_FORMAT_H Chris@1698: Chris@1698: static bool isLegitimatelyUnsupported(QString format) { Chris@1698: Chris@1698: #ifdef Q_OS_WIN Chris@1698: return (format == "apple_lossless"); Chris@1698: #else Chris@1698: #ifdef Q_OS_MAC Chris@1698: return (format == "wma"); Chris@1698: #else Chris@1698: return (format == "aac" || Chris@1698: format == "apple_lossless" || Chris@1698: format == "m4a" || Chris@1698: format == "wma"); Chris@1698: #endif Chris@1698: #endif Chris@1698: } Chris@1698: Chris@1698: #endif