]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_sdl.c
Attempt to fix speaker layout for 5.1 and 7.1 sound, on Windows and Mac OS X; the...
[xonotic/darkplaces.git] / snd_sdl.c
index 6dccba7371fae2146d18286b2e7f1a909a168fb2..90b53129c10947a239375d9e0a59ff007a84cb29 100644 (file)
--- a/snd_sdl.c
+++ b/snd_sdl.c
@@ -142,6 +142,12 @@ qboolean SndSys_Init (const snd_format_t* requested, snd_format_t* suggested)
 
        snd_renderbuffer = Snd_CreateRingBuffer(requested, 0, NULL);
 
+#ifdef __linux__
+       alsaspeakerlayout = true;
+#else
+       alsaspeakerlayout = false;
+#endif
+
        sdlaudiotime = 0;
        SDL_PauseAudio( false );