From 41f51d43ace7b975d2b386657017f6fe1c48146e Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Mon, 21 Oct 2019 21:54:12 +0200 Subject: [PATCH] [pipe] Allow configuration of 32 bit input format (issue #830) Should work with e.g. arecord -f S32_LE -r 96000 -c 2 -t wav --- src/inputs/pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inputs/pipe.c b/src/inputs/pipe.c index e36995ca..7755ddd1 100644 --- a/src/inputs/pipe.c +++ b/src/inputs/pipe.c @@ -1054,7 +1054,7 @@ init(void) } pipe_bits_per_sample = cfg_getint(cfg_getsec(cfg, "library"), "pipe_bits_per_sample"); - if (pipe_bits_per_sample != 16 && pipe_bits_per_sample != 24) + if (pipe_bits_per_sample != 16 && pipe_bits_per_sample != 24 && pipe_bits_per_sample != 32) { DPRINTF(E_FATAL, L_PLAYER, "The configuration of pipe_bits_per_sample is invalid: %d\n", pipe_bits_per_sample); return -1;