tests: Demux/decode .ogg

This commit is contained in:
Alexander Kojevnikov 2013-03-26 09:48:53 -07:00
parent 87360354c4
commit 7627ecbb7a
4 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -63,6 +63,7 @@ void test_audio_info()
{"2ch-44100Hz-320cbr.mp3", {"MP3", 320000, 44100, 0, 2, MP3_T}},
{"2ch-44100Hz-V0.mp3", {"MP3", 201329, 44100, 0, 2, MP3_T}},
{"2ch-44100Hz-V2.mp3", {"MP3", 150124, 44100, 0, 2, MP3_T}},
{"2ch-44100Hz-q5.ogg", {"Vorbis", 160000, 44100, 0, 2, 0.1}},
};
for (const auto& item : files) {
run(

View File

@ -58,6 +58,7 @@ void test_audio_read()
{"2ch-44100Hz-320cbr.mp3", 2 * 1152 * 4 + 94},
{"2ch-44100Hz-V0.mp3", 2 * 1152 * 4 + 94},
{"2ch-44100Hz-V2.mp3", 2 * 1152 * 4 + 94},
{"2ch-44100Hz-q5.ogg", 2 * 1024 * 4 + 1152},
};
for (const auto& item : files) {
run(

View File

@ -34,8 +34,7 @@ int main()
std::cerr << " tests failed" << "\x1b[0m" << std::endl;
return -1;
} else {
std::cerr << "\x1b[32;1m" << g_passes << "/" << g_total;
std::cerr << " tests passed" << "\x1b[0m" << std::endl;
std::cerr << "\x1b[32;1m" << g_total << " tests passed" << "\x1b[0m" << std::endl;
return 0;
}
}