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.
This commit is contained in:
Max Kellermann 2009-03-02 15:46:09 +01:00
parent 8c0bce0b94
commit 062f37071c
2 changed files with 2 additions and 1 deletions

1
NEWS
View File

@ -46,6 +46,7 @@ ver 0.15 - (200?/??/??)
* playlist: don't unpause on delete
* daemon: ignore "user" setting if already running as that user
* listen: fix broken client IP addresses in log
* 32 bit audio support
ver 0.14.2 (2009/02/13)

View File

@ -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;
}
/**