mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #1372 from Ryozuki/pr_fix_windows_sound
Fix windows sound. Fixes #1371
This commit is contained in:
commit
5ad48da41d
|
@ -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>();
|
||||
|
|
Loading…
Reference in a new issue