X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=snd_sdl.c;h=64f0dde64c3870c0db6d171ade524a9e70786282;hb=59a9465f1205a694b0a2fbc36000735329b0497e;hp=571f737caafda35dd455818f02aa032e4dc970a7;hpb=939f4320b463a667e8a9c5c5453781c825d80c16;p=xonotic%2Fdarkplaces.git diff --git a/snd_sdl.c b/snd_sdl.c index 571f737c..64f0dde6 100644 --- a/snd_sdl.c +++ b/snd_sdl.c @@ -16,11 +16,11 @@ You should have received a copy of the GNU General Public License 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 #include -#include "quakedef.h" #include "snd_main.h" @@ -62,7 +62,7 @@ static void Buffer_Callback (void *userdata, Uint8 *stream, int len) snd_renderbuffer->startframe += FrameCount; - if (FrameCount < RequestedFrames && developer.integer >= 1000) + if (FrameCount < RequestedFrames && developer.integer >= 1000 && vid_activewindow) Con_DPrintf("SDL sound: %u sample frames missing\n", RequestedFrames - FrameCount); sdlaudiotime += RequestedFrames;