From: havoc Date: Fri, 6 Apr 2007 09:41:58 +0000 (+0000) Subject: changed "sample frames missing" and similar warnings to require developer 1000 or... X-Git-Tag: xonotic-v0.1.0preview~3361 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=939f4320b463a667e8a9c5c5453781c825d80c16;p=xonotic%2Fdarkplaces.git 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 --- 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;