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:
parent
8c0bce0b94
commit
062f37071c
1
NEWS
1
NEWS
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue