30 lines
588 B
Plaintext

$OpenBSD: patch-sndio_c,v 1.1 2016/09/23 23:08:36 juanfra Exp $
Support 32-bit/24-bit encoding
84f33584be91 upstream
--- sndio.c.orig Mon Jul 13 12:00:56 2015
+++ sndio.c Thu Sep 22 18:54:45 2016
@@ -20,7 +20,6 @@
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/audioio.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
@@ -82,6 +81,12 @@ static int sndio_set_sf(sample_format_t sf)
par.le = 1;
switch (sf_get_bits(sndio_sf)) {
+ case 32:
+ par.bits = 32;
+ break;
+ case 24:
+ par.bits = 24;
+ break;
case 16:
par.bits = 16;
break;