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. --- NEWS | 1 + src/audio_format.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index de61061d4..aa687a22f 100644 --- a/NEWS +++ b/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) 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; } /** -- cgit v1.2.3