]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
OPENAL fix
authorToni Wilen <twilen@winuae.net>
Sat, 2 May 2026 14:12:11 +0000 (17:12 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 2 May 2026 14:12:11 +0000 (17:12 +0300)
od-win32/sounddep/sound.cpp
od-win32/sysconfig.h

index 8f904369e7753b1b15dada296ea642a0373918ec..fb258006ad58034fcfedd2042659c7f53f108c3b 100644 (file)
@@ -2203,7 +2203,7 @@ void restart_sound_buffer (void)
        restart_sound_buffer2 (sdp);
 }
 
-#if WITH_OPENAL
+#ifdef WITH_OPENAL
 static int alcheck (struct sound_data *sd, int v)
 {
        struct sound_dp *s = sd->data;
@@ -3094,7 +3094,7 @@ static void wasapi_enum (struct sound_device **sdp)
 
 }
 
-#if WITH_OPENAL
+#ifdef WITH_OPENAL
 static void OpenALEnumerate (struct sound_device **sds, const char *pDeviceNames, const char *ppDefaultDevice, int skipdetect)
 {
        while (pDeviceNames && *pDeviceNames) {
@@ -3265,7 +3265,7 @@ int enumerate_sound_devices (void)
                if (sounddrivermask & SOUNDDRIVE_XAUDIO2)
                        xaudioenumerate (sound_devices);
 #endif
-#if WITH_OPENAL
+#ifdef WITH_OPENAL
                if (sounddrivermask & SOUNDDRIVER_OPENAL) {
                        __try {
                                if (isdllversion (_T("openal32.dll"), 6, 14, 357, 22)) {
index 7cdc3d027be956a5912044e6e3a6fe6faa2c1f63..5cb49c411c79a696bdb32ce22ee4e7b415bd0019 100644 (file)
 #define WITH_DRACO
 #define WITH_MIDI
 #define WITH_PORTAUDIO
-#define WITH_AL
+#define WITH_OPENAL
 #define WITH_LIBMPEG2
 #define WITH_DIRECT3D11
 #define WITH_DIRECT3D9
 
 #undef SERIAL_ENET
 #undef WITH_PORTAUDIO
-#undef WITH_AL
+#undef WITH_OPENAL
 #undef WITH_LUA
 #undef WITH_DIRECT3D9