Browse Source

Fix for older OpenAL versions

rdb 10 years ago
parent
commit
a98d50cd61
1 changed files with 8 additions and 0 deletions
  1. 8 0
      panda/src/audiotraits/openalAudioManager.cxx

+ 8 - 0
panda/src/audiotraits/openalAudioManager.cxx

@@ -28,6 +28,14 @@
 
 #include <algorithm>
 
+#ifndef ALC_DEFAULT_ALL_DEVICES_SPECIFIER
+#define ALC_DEFAULT_ALL_DEVICES_SPECIFIER 0x1012
+#endif
+
+#ifndef ALC_ALL_DEVICES_SPECIFIER
+#define ALC_ALL_DEVICES_SPECIFIER 0x1013
+#endif
+
 TypeHandle OpenALAudioManager::_type_handle;
 
 ReMutex OpenALAudioManager::_lock;