blob: 84a1176a8824646cdd4b3594e32bdcc7d4ae2193 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
$NetBSD: patch-src_audio_bsd_SDL__bsdaudio.c,v 1.1 2015/05/31 09:17:53 nat Exp $
# Remove delay as there is already an inherent delay in writing audio.
--- src/audio/bsd/SDL_bsdaudio.c.orig 2012-01-19 06:30:06.000000000 +0000
+++ src/audio/bsd/SDL_bsdaudio.c
@@ -203,9 +203,6 @@ OBSD_PlayAudio(_THIS)
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 */
|