aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_format.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-02 15:46:09 +0100
committerMax Kellermann <max@duempel.org>2009-03-02 15:46:09 +0100
commit062f37071c02f7f7e1e6f7cc977af2b81de8d98c (patch)
treeeff8bf8125639e7b7dcd7611b755440206bff7bf /src/audio_format.h
parent8c0bce0b94f37e6dabda60dff0d1fc725567684f (diff)
downloadmpd-062f37071c02f7f7e1e6f7cc977af2b81de8d98c.tar.gz
mpd-062f37071c02f7f7e1e6f7cc977af2b81de8d98c.tar.xz
mpd-062f37071c02f7f7e1e6f7cc977af2b81de8d98c.zip
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.
Diffstat (limited to 'src/audio_format.h')
-rw-r--r--src/audio_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_format.h b/src/audio_format.h
index 92d11e9db..a87aac383 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;
}
/**