[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
This commit is contained in:
ejurgensen 2019-10-21 21:54:12 +02:00
parent ef1c24f227
commit 41f51d43ac

View File

@ -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;