X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=snd_sdl.c;h=c88b28c8bb3d565fe3677375b23c1247d955edc7;hb=137357d6b7e13e7b2d4bbaeb719dfd4f218a1e5e;hp=88dfade64486e4826f44f9f2f0c1ba6e5d91043f;hpb=65f6c04779aa58c69929e0d22967bf152dac17c1;p=xonotic%2Fdarkplaces.git diff --git a/snd_sdl.c b/snd_sdl.c index 88dfade6..c88b28c8 100644 --- a/snd_sdl.c +++ b/snd_sdl.c @@ -73,8 +73,8 @@ static void Buffer_Callback (void *userdata, Uint8 *stream, int len) snd_renderbuffer->startframe += FrameCount; - if (FrameCount < RequestedFrames && developer.integer >= 1000 && vid_activewindow) - Con_Printf("SDL sound: %u sample frames missing\n", RequestedFrames - FrameCount); + if (FrameCount < RequestedFrames && developer_insane.integer && vid_activewindow) + Con_DPrintf("SDL sound: %u sample frames missing\n", RequestedFrames - FrameCount); sdlaudiotime += RequestedFrames; @@ -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 );