]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
be more clear in the overflow message of OGG_FetchSound
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 11 Nov 2010 14:05:27 +0000 (14:05 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 12 Nov 2010 18:51:02 +0000 (19:51 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10586 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d24de034fdb60c32bc0e6937362884443ad262f4

snd_ogg.c

index 66ad014dc82106947a18bf1599a4e01b745daf74..d4ca2a6c932d88a0af130fed0dcd20e154815775 100644 (file)
--- a/snd_ogg.c
+++ b/snd_ogg.c
@@ -536,8 +536,8 @@ static const snd_buffer_t* OGG_FetchSound (void *sfxfetcher, void **chfetcherpoi
        newlength = (int)(per_sfx->format.speed*STREAM_BUFFER_FILL);
        if (newlength + sb->nbframes > sb->maxframes)
        {
-               Con_Printf ("OGG_FetchSound: stream buffer overflow (%u sample frames / %u)\n",
-                                       sb->format.speed + sb->nbframes, sb->maxframes);
+               Con_Printf ("OGG_FetchSound: stream buffer overflow (%u + %u = %u sample frames / %u)\n",
+                                       newlength, sb->nbframes, newlength + sb->nbframes, sb->maxframes);
                return NULL;
        }
        newlength *= factor; // convert from sample frames to bytes