mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
fix windows sound
This commit is contained in:
parent
d072817e25
commit
d9d3ed783e
|
@ -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>();
|
||||||
|
|
Loading…
Reference in a new issue