comparison data/fileio/test/AudioFileReaderTest.h @ 820:bb7ea947c60d

Qt4/5 compatibility fix
author Chris Cannam
date Mon, 08 Jul 2013 14:44:01 +0100
parents 2b3a8ae04597
children e06f03013f46
comparison
equal deleted inserted replaced
819:51cf0c35e9b0 820:bb7ea947c60d
76 int nominalChannels = bits[1].toInt(); 76 int nominalChannels = bits[1].toInt();
77 int nominalDepth = 16; 77 int nominalDepth = 16;
78 if (bits.length() > 2) nominalDepth = bits[2].toInt(); 78 if (bits.length() > 2) nominalDepth = bits[2].toInt();
79 79
80 if (!reader) { 80 if (!reader) {
81 #if ( QT_VERSION >= 0x050000 )
81 QSKIP("Unsupported file, skipping"); 82 QSKIP("Unsupported file, skipping");
83 #else
84 QSKIP("Unsupported file, skipping", SkipSingle);
85 #endif
82 } 86 }
83 87
84 QCOMPARE((int)reader->getChannelCount(), nominalChannels); 88 QCOMPARE((int)reader->getChannelCount(), nominalChannels);
85 QCOMPARE((int)reader->getNativeRate(), nominalRate); 89 QCOMPARE((int)reader->getNativeRate(), nominalRate);
86 QCOMPARE((int)reader->getSampleRate(), readRate); 90 QCOMPARE((int)reader->getSampleRate(), readRate);