Patched OpenBSD audio to compile on newer GCC versions.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 22 Nov 2005 15:11:33 +0000
changeset 1186 0276947bee66
parent 1185 58538e140e2d
child 1187 19d8949b4584
Patched OpenBSD audio to compile on newer GCC versions.
src/audio/openbsd/SDL_openbsdaudio.c
--- a/src/audio/openbsd/SDL_openbsdaudio.c	Tue Nov 22 15:10:41 2005 +0000
+++ b/src/audio/openbsd/SDL_openbsdaudio.c	Tue Nov 22 15:11:33 2005 +0000
@@ -262,21 +262,21 @@
 	return;
     }
 
-    fprintf(stderr,"
-[play/record info]
-buffer size	:   %d bytes
-sample rate	:   %i Hz
-channels	:   %i
-precision	:   %i-bit
-encoding	:   0x%x
-seek		:   %i
-sample count	:   %i
-EOF count	:   %i
-paused		:   %s
-error occured	:   %s
-waiting		:   %s
-active		:   %s
-",
+    fprintf(stderr,"\n"
+"[play/record info]\n"
+"buffer size	:   %d bytes\n"
+"sample rate	:   %i Hz\n"
+"channels	:   %i\n"
+"precision	:   %i-bit\n"
+"encoding	:   0x%x\n"
+"seek		:   %i\n"
+"sample count	:   %i\n"
+"EOF count	:   %i\n"
+"paused		:   %s\n"
+"error occured	:   %s\n"
+"waiting		:   %s\n"
+"active		:   %s\n"
+"",
     info.play.buffer_size,
     info.play.sample_rate,
     info.play.channels,
@@ -290,14 +290,14 @@
     info.play.waiting ? "yes" : "no",
     info.play.active ? "yes": "no");
 
-    fprintf(stderr,"
-[audio info]
-monitor_gain	:   %i
-hw block size	:   %d bytes
-hi watermark	:   %i
-lo watermark	:   %i
-audio mode	:   %s
-",  
+    fprintf(stderr,"\n"
+"[audio info]\n"
+"monitor_gain	:   %i\n"
+"hw block size	:   %d bytes\n"
+"hi watermark	:   %i\n"
+"lo watermark	:   %i\n"
+"audio mode	:   %s\n"
+"",  
     info.monitor_gain,
     info.blocksize,
     info.hiwat, info.lowat,