diff --git a/src/audio_format.h b/src/audio_format.h index a7ff30830..92d11e9db 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -68,7 +68,7 @@ audio_valid_sample_format(unsigned bits) static inline bool audio_valid_channel_count(unsigned channels) { - return channels == 1 || channels == 2; + return channels >= 1 && channels <= 8; } /**