Merge pull request #1372 from Ryozuki/pr_fix_windows_sound

Fix windows sound. Fixes #1371
This commit is contained in:
Dennis Felsing 2018-11-02 13:19:08 +01:00 committed by GitHub
commit 5ad48da41d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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