Mercurial > hg > svcore
diff data/fileio/test/EncodingTest.h @ 1360:8eddb528ef0c 3.0-integration
Some platforms don't use native Ogg/Vorbis libraries
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 10 Jan 2017 11:06:19 +0000 |
parents | 1c9bbbb6116a |
children | aadfb395e933 |
line wrap: on
line diff
--- a/data/fileio/test/EncodingTest.h Tue Jan 10 10:58:25 2017 +0000 +++ b/data/fileio/test/EncodingTest.h Tue Jan 10 11:06:19 2017 +0000 @@ -134,6 +134,12 @@ if (extension != "wav") { +#if (!defined (HAVE_OGGZ) || !defined(HAVE_FISHSOUND)) + if (extension == "ogg") { + QSKIP("Lack native Ogg Vorbis reader, so won't be getting metadata"); + } +#endif + auto blah = reader->getInterleavedFrames(0, 10); QString title = reader->getTitle(); @@ -199,6 +205,12 @@ return; } +#if (!defined (HAVE_OGGZ) || !defined(HAVE_FISHSOUND)) + if (extension == "ogg") { + QSKIP("Lack native Ogg Vorbis reader, so won't be getting metadata"); + } +#endif + AudioFileReaderFactory::Parameters params; AudioFileReader *reader = AudioFileReaderFactory::createReader