pkgsrc-ng/devel/SDL2/patches/patch-src_audio_bsd_SDL__bsdaudio.c
2016-10-14 07:49:11 +02:00

20 lines
701 B
C

$NetBSD: patch-src_audio_bsd_SDL__bsdaudio.c,v 1.2 2015/11/13 14:18:23 wiz Exp $
# Remove delay as there is already an inherent delay in writing audio.
https://bugzilla.libsdl.org/show_bug.cgi?id=3177
--- src/audio/bsd/SDL_bsdaudio.c.orig 2014-03-16 02:31:44.000000000 +0000
+++ src/audio/bsd/SDL_bsdaudio.c
@@ -181,11 +181,6 @@ BSDAUDIO_PlayDevice(_THIS)
perror("audio");
break;
}
-
- if (p < written
- || ((written < 0) && ((errno == 0) || (errno == EAGAIN)))) {
- SDL_Delay(1); /* Let a little CPU time go by */
- }
} while (p < written);
/* If timer synchronization is enabled, set the next write frame */