changeset 23336:5cec8dd2fe24

Move common ioctl outside of ifdef
author reimar
date Sun, 20 May 2007 12:20:03 +0000
parents 69696caa0b1b
children 10a7279b8e56
files libao2/ao_sun.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libao2/ao_sun.c	Sun May 20 12:15:16 2007 +0000
+++ b/libao2/ao_sun.c	Sun May 20 12:20:03 2007 +0000
@@ -651,12 +651,11 @@
     }
 #endif
 
+    ioctl(audio_fd, AUDIO_GETINFO, &info);
 #if !defined (__OpenBSD__) && !defined(__NetBSD__)
-    ioctl(audio_fd, AUDIO_GETINFO, &info);
     if (queued_bursts - info.play.eof > 2)
 	return 0;
 #else
-    ioctl(audio_fd, AUDIO_GETINFO, &info);
     return info.hiwat * info.blocksize - info.play.seek;
 #endif