openbsd-ports/audio/libdca/patches/patch-libao_audio_out_c
ajacoutot 3171478cd7 - Fix missing libdts.a symlink.
- Clean up port

from Brad
2020-03-27 07:33:02 +00:00

30 lines
932 B
Plaintext

$OpenBSD: patch-libao_audio_out_c,v 1.2 2020/03/27 07:33:02 ajacoutot Exp $
Index: libao/audio_out.c
--- libao/audio_out.c.orig
+++ libao/audio_out.c
@@ -34,6 +34,10 @@ extern ao_open_t ao_oss_open;
extern ao_open_t ao_ossdolby_open;
extern ao_open_t ao_oss4_open;
extern ao_open_t ao_oss6_open;
+extern ao_open_t ao_sndio_open;
+extern ao_open_t ao_sndiodolby_open;
+extern ao_open_t ao_sndio4_open;
+extern ao_open_t ao_sndio6_open;
extern ao_open_t ao_solaris_open;
extern ao_open_t ao_solarisdolby_open;
extern ao_open_t ao_al_open;
@@ -61,6 +65,12 @@ static ao_driver_t audio_out_drivers[] = {
{"ossdolby", ao_ossdolby_open},
{"oss4", ao_oss4_open},
{"oss6", ao_oss6_open},
+#endif
+#ifdef LIBAO_SNDIO
+ {"sndio", ao_sndio_open},
+ {"sndiodolby", ao_sndiodolby_open},
+ {"sndio4", ao_sndio4_open},
+ {"sndio6", ao_sndio6_open},
#endif
#ifdef LIBAO_SOLARIS
{"solaris", ao_solaris_open},