snd_renderbuffer->startframe += FrameCount;
- if (FrameCount < RequestedFrames)
+ if (FrameCount < RequestedFrames && developer.integer >= 100)
Con_DPrintf("SDL sound: %u sample frames missing\n", RequestedFrames - FrameCount);
sdlaudiotime += RequestedFrames;
}
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);
+ }
sdlaudiotime = 0;
SDL_PauseAudio( false );