From a86df369b3a81491f989a197268cb131179a075f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Star=C3=BD?= Date: Wed, 19 Dec 2018 12:19:59 +0100 Subject: [PATCH] treat float32 as 32 bits --- src/hostapi/sndio/pa_sndio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hostapi/sndio/pa_sndio.c b/src/hostapi/sndio/pa_sndio.c index dd1c145..746bbe4 100644 --- a/src/hostapi/sndio/pa_sndio.c +++ b/src/hostapi/sndio/pa_sndio.c @@ -87,6 +87,7 @@ sndioSetFmt(struct sio_par *sio, PaSampleFormat fmt) { switch (fmt & ~paNonInterleaved) { case paInt32: + case paFloat32: sio->sig = 1; sio->bits = 32; break; @@ -96,7 +97,6 @@ sndioSetFmt(struct sio_par *sio, PaSampleFormat fmt) sio->bps = 3; /* paInt24 is packed format */ break; case paInt16: - case paFloat32: sio->sig = 1; sio->bits = 16; break; -- 2.43.0