annotate data/fileio/test/UnsupportedFormat.h @ 1719:6af7bd6aaf79 3.3-stable

Branch
author Chris Cannam
date Tue, 21 May 2019 17:14:23 +0100
parents 219b2c2ff8c2
children 35d08f4274b9
rev   line source
Chris@1698 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
Chris@1698 2
Chris@1698 3 /*
Chris@1698 4 Sonic Visualiser
Chris@1698 5 An audio file viewer and annotation editor.
Chris@1698 6 Centre for Digital Music, Queen Mary, University of London.
Chris@1698 7 This file copyright 2013 Chris Cannam.
Chris@1698 8
Chris@1698 9 This program is free software; you can redistribute it and/or
Chris@1698 10 modify it under the terms of the GNU General Public License as
Chris@1698 11 published by the Free Software Foundation; either version 2 of the
Chris@1698 12 License, or (at your option) any later version. See the file
Chris@1698 13 COPYING included with this distribution for more information.
Chris@1698 14 */
Chris@1698 15
Chris@1698 16 #ifndef SV_UNSUPPORTED_FORMAT_H
Chris@1698 17 #define SV_UNSUPPORTED_FORMAT_H
Chris@1698 18
Chris@1698 19 static bool isLegitimatelyUnsupported(QString format) {
Chris@1698 20
Chris@1698 21 #ifdef Q_OS_WIN
Chris@1718 22 if (sizeof(void *) == 4) {
Chris@1718 23 // Our 32-bit MinGW build lacks MediaFoundation support
Chris@1718 24 return (format == "aac" ||
Chris@1718 25 format == "apple_lossless" ||
Chris@1718 26 format == "m4a" ||
Chris@1718 27 format == "wma");
Chris@1718 28 } else {
Chris@1718 29 return (format == "apple_lossless");
Chris@1718 30 }
Chris@1698 31 #else
Chris@1698 32 #ifdef Q_OS_MAC
Chris@1698 33 return (format == "wma");
Chris@1698 34 #else
Chris@1698 35 return (format == "aac" ||
Chris@1698 36 format == "apple_lossless" ||
Chris@1698 37 format == "m4a" ||
Chris@1698 38 format == "wma");
Chris@1698 39 #endif
Chris@1698 40 #endif
Chris@1698 41 }
Chris@1698 42
Chris@1698 43 #endif