From 8c0bce0b94f37e6dabda60dff0d1fc725567684f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Mar 2009 15:43:45 +0100 Subject: audio_format: allow up to 8 channels audio_valid_sample_format() verifies the number of channels. Let's just say up to 8 channels is allowed (which is possible with some consumer sound chips). I don't know if there are bigger cards, and since I cannot test it, I'll limit it to 8 for now. --- src/audio_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/audio_format.h') diff --git a/src/audio_format.h b/src/audio_format.h index a7ff3083..92d11e9d 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; } /** -- cgit v1.2.3