Mercurial > hg > svcore
comparison data/fileio/test/EncodingTest.h @ 1588:0773b34d987f bqaudiostream
We should now be able to get these from Ogg files, though this might not be working yet...
author | Chris Cannam |
---|---|
date | Thu, 17 Jan 2019 15:08:38 +0000 |
parents | 87ae75da6527 |
children | f8e3dcbafb4d |
comparison
equal
deleted
inserted
replaced
1587:b67f5b6a7978 | 1588:0773b34d987f |
---|---|
140 | 140 |
141 delete reader; | 141 delete reader; |
142 | 142 |
143 } else { | 143 } else { |
144 | 144 |
145 #if (!defined (HAVE_OGGZ) || !defined(HAVE_FISHSOUND)) | 145 //#if (!defined (HAVE_OGGZ) || !defined(HAVE_FISHSOUND)) |
146 if (extension == "ogg") { | 146 // if (extension == "ogg") { |
147 QSKIP("Lack native Ogg Vorbis reader, so won't be getting metadata"); | 147 // QSKIP("Lack native Ogg Vorbis reader, so won't be getting metadata"); |
148 } | 148 // } |
149 #endif | 149 //#endif |
150 | 150 |
151 auto blah = reader->getInterleavedFrames(0, 10); | 151 auto blah = reader->getInterleavedFrames(0, 10); |
152 | 152 |
153 QString title = reader->getTitle(); | 153 QString title = reader->getTitle(); |
154 QVERIFY(title != QString()); | 154 QVERIFY(title != QString()); |
213 | 213 |
214 if (extension == "wav") { | 214 if (extension == "wav") { |
215 return; | 215 return; |
216 } | 216 } |
217 | 217 |
218 #if (!defined (HAVE_OGGZ) || !defined(HAVE_FISHSOUND)) | 218 //#if (!defined (HAVE_OGGZ) || !defined(HAVE_FISHSOUND)) |
219 if (extension == "ogg") { | 219 // if (extension == "ogg") { |
220 QSKIP("Lack native Ogg Vorbis reader, so won't be getting metadata"); | 220 // QSKIP("Lack native Ogg Vorbis reader, so won't be getting metadata"); |
221 } | 221 // } |
222 #endif | 222 //#endif |
223 | 223 |
224 AudioFileReaderFactory::Parameters params; | 224 AudioFileReaderFactory::Parameters params; |
225 AudioFileReader *reader = | 225 AudioFileReader *reader = |
226 AudioFileReaderFactory::createReader | 226 AudioFileReaderFactory::createReader |
227 (encodingDir + "/" + audiofile, params); | 227 (encodingDir + "/" + audiofile, params); |