git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6459
d7cf8633-e32d-0410-b094-
e92efae38249
snd_renderbuffer = Snd_CreateRingBuffer(requested, 0, NULL);
if (snd_channellayout.integer == SND_CHANNELLAYOUT_AUTO)
- Cvar_SetValueQuick (&snd_channellayout, SND_CHANNELLAYOUT_ALSA);
+ {
+ int newlayout;
+
+#ifdef __linux__
+ newlayout = SND_CHANNELLAYOUT_ALSA;
+#else
+ newlayout = SND_CHANNELLAYOUT_STANDARD;
+#endif
+ Cvar_SetValueQuick (&snd_channellayout, newlayout);
+ }
sdlaudiotime = 0;
SDL_PauseAudio( false );