fix windows sound

This commit is contained in:
Ryozuki 2018-11-02 12:47:20 +01:00
parent d072817e25
commit d9d3ed783e

View file

@ -283,6 +283,9 @@ static void SdlCallback(void *pUnused, Uint8 *pStream, int Len)
int CSound::Init() int CSound::Init()
{ {
#ifdef CONF_FAMILY_WINDOWS
SDL_setenv("SDL_AUDIODRIVER", "directsound", true);
#endif
m_SoundEnabled = 0; m_SoundEnabled = 0;
m_pGraphics = Kernel()->RequestInterface<IEngineGraphics>(); m_pGraphics = Kernel()->RequestInterface<IEngineGraphics>();
m_pStorage = Kernel()->RequestInterface<IStorage>(); m_pStorage = Kernel()->RequestInterface<IStorage>();