diff options
author | Max Kellermann <max@duempel.org> | 2011-10-08 10:25:06 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-20 02:32:39 +0200 |
commit | 545685bc3209d9cfdf6c4b9aeee4715edd453dc1 (patch) | |
tree | a8c1eea32702dcb319bae836581f1938c8bc6152 /src/output/alsa_output_plugin.c | |
parent | 13ad2b4dc2a11ab7bad3703cdca050dd55243b6b (diff) | |
download | mpd-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/output/alsa_output_plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/output/alsa_output_plugin.c b/src/output/alsa_output_plugin.c index af6d1b184..f939ba5b4 100644 --- a/src/output/alsa_output_plugin.c +++ b/src/output/alsa_output_plugin.c @@ -212,6 +212,9 @@ get_bitformat(enum sample_format sample_format) case SAMPLE_FORMAT_S32: return SND_PCM_FORMAT_S32; + + case SAMPLE_FORMAT_FLOAT: + return SND_PCM_FORMAT_FLOAT; } assert(false); |