From: divverent Date: Sat, 27 Mar 2010 13:08:42 +0000 (+0000) Subject: fix 6ch channel layout in SDL on Linux (it no longer uses SND_CHANNELLAYOUT_ALSA) X-Git-Tag: xonotic-v0.1.0preview~230^2~408 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=42a84a82462e7bf863438e2729cc902aad7258c0;p=xonotic%2Fdarkplaces.git fix 6ch channel layout in SDL on Linux (it no longer uses SND_CHANNELLAYOUT_ALSA) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10061 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/snd_sdl.c b/snd_sdl.c index 793fc6a2..c88b28c8 100644 --- a/snd_sdl.c +++ b/snd_sdl.c @@ -160,16 +160,7 @@ qboolean SndSys_Init (const snd_format_t* requested, snd_format_t* suggested) snd_renderbuffer = Snd_CreateRingBuffer(requested, 0, NULL); if (snd_channellayout.integer == SND_CHANNELLAYOUT_AUTO) - { - int newlayout; - -#ifdef __linux__ - newlayout = SND_CHANNELLAYOUT_ALSA; -#else - newlayout = SND_CHANNELLAYOUT_STANDARD; -#endif - Cvar_SetValueQuick (&snd_channellayout, newlayout); - } + Cvar_SetValueQuick (&snd_channellayout, SND_CHANNELLAYOUT_STANDARD); sdlaudiotime = 0; SDL_PauseAudio( false );