Commit 8c0bce0b authored by Max Kellermann's avatar Max Kellermann

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.
parent a1561252
......@@ -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;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment