From 062f37071c02f7f7e1e6f7cc977af2b81de8d98c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 2 Mar 2009 15:46:09 +0100 Subject: audio_format: allow 32 bit samples This is the first patch in a series to enable 32 bit audio samples in MPD. 32 bit samples are more tricky than 24 bit samples, because the integer may overflow when you operate on a sample. --- 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 92d11e9d..a87aac38 100644 --- a/src/audio_format.h +++ b/src/audio_format.h @@ -59,7 +59,7 @@ audio_valid_sample_rate(unsigned sample_rate) static inline bool audio_valid_sample_format(unsigned bits) { - return bits == 16 || bits == 24 || bits == 8; + return bits == 16 || bits == 24 || bits == 32 || bits == 8; } /** -- cgit v1.2.3