[MPlayer-dev-eng] [PATCH] Remove OpenBSD bits from Sun audio backend
Brad Smith
brad at comstyle.com
Thu Mar 3 03:18:59 EET 2022
Remove some OpenBSD bits from the Sun audio backend. We have been using sndio
for 12+ years.
Index: libao2/ao_sun.c
===================================================================
--- libao2/ao_sun.c (revision 38359)
+++ libao2/ao_sun.c (working copy)
@@ -455,7 +455,7 @@
else
info.play.balance = (vol->right - vol->left + volume) * AUDIO_RIGHT_BALANCE / (2*volume);
}
-#if !defined (__OpenBSD__) && !defined (__NetBSD__)
+#ifndef __NetBSD__
info.output_muted = (volume == 0);
#endif
ioctl( fd,AUDIO_SETINFO,&info );
@@ -646,7 +646,7 @@
#endif
ioctl(audio_fd, AUDIO_GETINFO, &info);
-#if !defined (__OpenBSD__) && !defined(__NetBSD__)
+#ifndef __NetBSD__
if (queued_bursts - info.play.eof > 2)
return 0;
return ao_data.outburst;
@@ -682,7 +682,7 @@
static float get_delay(void){
audio_info_t info;
ioctl(audio_fd, AUDIO_GETINFO, &info);
-#if defined (__OpenBSD__) || defined(__NetBSD__)
+#ifdef __NetBSD__
return (float) info.play.seek/ (float)byte_per_sec ;
#else
if (info.play.samples && enable_sample_timing == RTSC_ENABLED)
More information about the MPlayer-dev-eng
mailing list