From 7c5ab1240a928c60a53334ed90b2f7bc0dc8ab6d Mon Sep 17 00:00:00 2001 From: Cary Sandvig Date: Thu, 12 Oct 2000 21:35:01 +0000 Subject: [PATCH] screwing around with mp3 --- panda/src/audio/test_audio.cxx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/panda/src/audio/test_audio.cxx b/panda/src/audio/test_audio.cxx index f318e46454..446d0fbcb8 100644 --- a/panda/src/audio/test_audio.cxx +++ b/panda/src/audio/test_audio.cxx @@ -11,11 +11,16 @@ int main(int argc, char* argv[]) { - if (! AudioPool::verify_sample("test.wav")) { - audio_cat->fatal() << "could not locate 'test.wav'" << endl; + // if (! AudioPool::verify_sample("test.wav")) { + // audio_cat->fatal() << "could not locate 'test.wav'" << endl; + // exit(-1); + // } + if (! AudioPool::verify_sample("test.mp3")) { + audio_cat->fatal() << "could not locate 'test.mp3'" << endl; exit(-1); } - AudioSample* sample = AudioPool::load_sample("test.wav"); + // AudioSample* sample = AudioPool::load_sample("test.wav"); + AudioSample* sample = AudioPool::load_sample("test.mp3"); audio_cat->info() << "test.wav is " << sample->length() << "sec long" << endl; audio_cat->info() << "Playing test.wav" << endl;