spek

Acoustic spectrum analyser
git clone http://git.hanabi.in/repos/spek.git
Log | Files | Refs | README

commit 7627ecbb7a2d16fba7b51e72e397f5c86755eb3a
parent 87360354c4b7cc231b69e38cba38e7798895e940
Author: Alexander Kojevnikov <alexander@kojevnikov.com>
Date:   Tue, 26 Mar 2013 09:48:53 -0700

tests: Demux/decode .ogg

Diffstat:
Atests/samples/2ch-44100Hz-q5.ogg | 0
Mtests/test-audio-info.cc | 1+
Mtests/test-audio-read.cc | 1+
Mtests/test.cc | 3+--
4 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tests/samples/2ch-44100Hz-q5.ogg b/tests/samples/2ch-44100Hz-q5.ogg Binary files differ. diff --git a/tests/test-audio-info.cc b/tests/test-audio-info.cc @@ -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( diff --git a/tests/test-audio-read.cc b/tests/test-audio-read.cc @@ -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( diff --git a/tests/test.cc b/tests/test.cc @@ -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; } }