Browse Source

screwing around with mp3

Cary Sandvig 25 years ago
parent
commit
7c5ab1240a
1 changed files with 8 additions and 3 deletions
  1. 8 3
      panda/src/audio/test_audio.cxx

+ 8 - 3
panda/src/audio/test_audio.cxx

@@ -11,11 +11,16 @@
 
 
 int
 int
 main(int argc, char* argv[]) {
 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);
     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"
   audio_cat->info() << "test.wav is " << sample->length() << "sec long"
 		     << endl;
 		     << endl;
   audio_cat->info() << "Playing test.wav" << endl;
   audio_cat->info() << "Playing test.wav" << endl;