From 939f4320b463a667e8a9c5c5453781c825d80c16 Mon Sep 17 00:00:00 2001 From: havoc Date: Fri, 6 Apr 2007 09:41:58 +0000 Subject: [PATCH] changed "sample frames missing" and similar warnings to require developer 1000 or higher git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7058 d7cf8633-e32d-0410-b094-e92efae38249 --- snd_alsa.c | 4 ++-- snd_coreaudio.c | 2 +- snd_sdl.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snd_alsa.c b/snd_alsa.c index 173a9f52..433e8859 100644 --- a/snd_alsa.c +++ b/snd_alsa.c @@ -283,7 +283,7 @@ static snd_pcm_sframes_t SndSys_Write (const unsigned char* buffer, unsigned int written = snd_pcm_writei (pcm_handle, buffer, nbframes); if (written < 0) { - if (developer.integer >= 100) + if (developer.integer >= 1000) Con_Printf ("SndSys_Write: audio write returned %ld (%s)!\n", written, snd_strerror (written)); @@ -361,7 +361,7 @@ unsigned int SndSys_GetSoundTime (void) err = snd_pcm_delay (pcm_handle, &delay); if (err != 0) { - if (developer.integer >= 100) + if (developer.integer >= 1000) Con_DPrintf ("SndSys_GetSoundTime: can't get playback delay (%s)\n", snd_strerror (err)); diff --git a/snd_coreaudio.c b/snd_coreaudio.c index ca8da917..c07fba02 100644 --- a/snd_coreaudio.c +++ b/snd_coreaudio.c @@ -109,7 +109,7 @@ static OSStatus audioDeviceIOProc(AudioDeviceID inDevice, unsigned int missingFrames; missingFrames = submissionChunk - frameCount; - if (developer.integer >= 200) + if (developer.integer >= 1000) Con_Printf("audioDeviceIOProc: %u sample frames missing\n", missingFrames); memset(&outBuffer[frameCount * snd_renderbuffer->format.channels], 0, missingFrames * sizeof(outBuffer[0])); } diff --git a/snd_sdl.c b/snd_sdl.c index 01f1bdcd..571f737c 100644 --- a/snd_sdl.c +++ b/snd_sdl.c @@ -62,7 +62,7 @@ static void Buffer_Callback (void *userdata, Uint8 *stream, int len) snd_renderbuffer->startframe += FrameCount; - if (FrameCount < RequestedFrames && developer.integer >= 200) + if (FrameCount < RequestedFrames && developer.integer >= 1000) Con_DPrintf("SDL sound: %u sample frames missing\n", RequestedFrames - FrameCount); sdlaudiotime += RequestedFrames; -- 2.39.2