From: Toni Wilen Date: Sat, 2 May 2026 14:12:11 +0000 (+0300) Subject: OPENAL fix X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=dc3df4c5fd185355fb9fd820d460dd2139788365;p=francis%2Fwinuae.git OPENAL fix --- diff --git a/od-win32/sounddep/sound.cpp b/od-win32/sounddep/sound.cpp index 8f904369..fb258006 100644 --- a/od-win32/sounddep/sound.cpp +++ b/od-win32/sounddep/sound.cpp @@ -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)) { diff --git a/od-win32/sysconfig.h b/od-win32/sysconfig.h index 7cdc3d02..5cb49c41 100644 --- a/od-win32/sysconfig.h +++ b/od-win32/sysconfig.h @@ -122,7 +122,7 @@ #define WITH_DRACO #define WITH_MIDI #define WITH_PORTAUDIO -#define WITH_AL +#define WITH_OPENAL #define WITH_LIBMPEG2 #define WITH_DIRECT3D11 #define WITH_DIRECT3D9 @@ -149,7 +149,7 @@ #undef SERIAL_ENET #undef WITH_PORTAUDIO -#undef WITH_AL +#undef WITH_OPENAL #undef WITH_LUA #undef WITH_DIRECT3D9