Skip to content

Commit

Permalink
Fix building on Windows with OpenAL when
Browse files Browse the repository at this point in the history
DirectSound libraries are missing.
  • Loading branch information
rohit-n authored and Katana-Steel committed Nov 23, 2023
1 parent 7e1a2fb commit b6a4061
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion runtime/client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ if(WIN32)
../kernel/src/sys/win/input.cpp
../kernel/src/sys/win/InputSim.cpp
../kernel/src/sys/win/load_pcx.cpp
../kernel/src/sys/win/ltdirectmusicloader.cpp
../kernel/src/sys/win/lthread.cpp
../kernel/src/sys/win/ltlibraryloader.cpp
../kernel/src/sys/win/ltrendermgr_impl.cpp
Expand Down Expand Up @@ -237,6 +236,7 @@ endif (ENABLE_OPENAL)
if (ENABLE_DIRECTMUSIC)
set(exec_src ${exec_src}
../kernel/src/sys/win/ltdirectmusic_impl.cpp
../kernel/src/sys/win/ltdirectmusicloader.cpp
)
else (ENABLE_DIRECTMUSIC)
set(exec_src ${exec_src}
Expand Down
6 changes: 3 additions & 3 deletions runtime/sound/src/soundmgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ extern ILTSoundSys* SoundSys( bool bTerminate = false );
#include "soundbuffer.h"
#endif

#ifdef WIN32
#if defined(WIN32) && !defined(USE_OPENAL)
#ifndef __DMUSICI_H__
#include <dmusici.h>
#define __DMUSICI_H__
Expand Down Expand Up @@ -176,13 +176,13 @@ class CSoundMgr : public ILTClientSoundMgr
#ifdef USE_ABSTRACT_SOUND_INTERFACES
// ===========================================================================

#ifdef _LINUX
#if defined(_LINUX) || defined(USE_OPENAL)
#define LPDIRECTSOUND8 void*
#define LPDIRECTSOUNDBUFFER void*
#endif

LPDIRECTSOUND8 GetDirectSound( );
#ifdef WIN32
#if defined(WIN32) && !defined(USE_OPENAL)
IDirectMusicPerformance8* GetDirectMusicPerformance( );
IDirectMusic* GetDirectMusic();
#else
Expand Down

0 comments on commit b6a4061

Please sign in to comment.