]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed "sample frames missing" and similar warnings to require developer 1000 or...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Apr 2007 09:41:58 +0000 (09:41 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 Apr 2007 09:41:58 +0000 (09:41 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7058 d7cf8633-e32d-0410-b094-e92efae38249

snd_alsa.c
snd_coreaudio.c
snd_sdl.c

index 173a9f52bb43ffb41308b2ac19515f07e9aa9eba..433e8859cbe16d4561544cf82839e0f72e878bbd 100644 (file)
@@ -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));
 
index ca8da917c921deab31858f7b7cb0f771e9a19008..c07fba02e57a76f34313ced8ac6f617835bc4598 100644 (file)
@@ -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]));
        }
index 01f1bdcddc3633cd9e1ad12e25ccf88532c67d7d..571f737caafda35dd455818f02aa032e4dc970a7 100644 (file)
--- 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;