aboutsummaryrefslogtreecommitdiffstats
path: root/src/audio_format.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2011-10-08 10:25:06 +0200
committerMax Kellermann <max@duempel.org>2011-10-20 02:32:39 +0200
commit545685bc3209d9cfdf6c4b9aeee4715edd453dc1 (patch)
treea8c1eea32702dcb319bae836581f1938c8bc6152 /src/audio_format.c
parent13ad2b4dc2a11ab7bad3703cdca050dd55243b6b (diff)
downloadmpd-545685bc3209d9cfdf6c4b9aeee4715edd453dc1.tar.gz
mpd-545685bc3209d9cfdf6c4b9aeee4715edd453dc1.tar.xz
mpd-545685bc3209d9cfdf6c4b9aeee4715edd453dc1.zip
audio_format: basic support for floating point samples
Support for conversion from float to 16, 24 and 32 bit integer samples.
Diffstat (limited to '')
-rw-r--r--src/audio_format.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/audio_format.c b/src/audio_format.c
index 458ec3b13..8c40457ec 100644
--- a/src/audio_format.c
+++ b/src/audio_format.c
@@ -68,6 +68,9 @@ sample_format_to_string(enum sample_format format)
case SAMPLE_FORMAT_S32:
return "32";
+
+ case SAMPLE_FORMAT_FLOAT:
+ return "f";
}
/* unreachable */