along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include "quakedef.h"
-
#include <math.h>
#include <SDL.h>
+#include "quakedef.h"
+
#include "snd_main.h"
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;
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 );