aboutsummaryrefslogtreecommitdiffstats
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
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 '')
-rw-r--r--NEWS1
-rw-r--r--src/audio_format.h2
2 files changed, 2 insertions, 1 deletions
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;
}
/**