Browse Source

osx fixes

David Rose 19 years ago
parent
commit
c5574929e8
2 changed files with 12 additions and 9 deletions
  1. 7 9
      panda/src/audio/config_audio.h
  2. 5 0
      panda/src/audiotraits/milesAudioManager.cxx

+ 7 - 9
panda/src/audio/config_audio.h

@@ -58,25 +58,23 @@ extern EXPCL_PANDA ConfigVariableInt audio_output_channels;
 
 
 
-#ifndef NDEBUG //[
+#ifdef NOTIFY_DEBUG //[
   // Non-release build:
   #define audio_debug(msg) \
   if (audio_cat.is_debug()) { \
     audio_cat->debug() << msg << endl; \
   } else {}
-
-  #define audio_info(msg) \
-    audio_cat->info() << msg << endl
-
-  #define audio_warning(msg) \
-    audio_cat->warning() << msg << endl
 #else //][
   // Release build:
   #define audio_debug(msg) ((void)0)
-  #define audio_info(msg) ((void)0)
-  #define audio_warning(msg) ((void)0)
 #endif //]
 
+#define audio_info(msg) \
+  audio_cat->info() << msg << endl
+
+#define audio_warning(msg) \
+  audio_cat->warning() << msg << endl
+
 #define audio_error(msg) \
   audio_cat->error() << msg << endl
 

+ 5 - 0
panda/src/audiotraits/milesAudioManager.cxx

@@ -76,6 +76,11 @@ MilesAudioManager() {
   if (_active_managers==0 || !_miles_active) {
     S32 use_digital=(audio_play_wave || audio_play_mp3)?1:0;
     S32 use_MIDI=(audio_play_midi)?1:0;
+
+#ifdef IS_OSX
+    audio_software_midi=true;
+#endif
+
     if (audio_play_midi && audio_software_midi) {
       use_MIDI=AIL_QUICK_DLS_ONLY;
     }