From 2335fdbb5ad98ef28df16a14e2fde53291bce8e4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 23 Aug 2014 13:40:21 +0200 Subject: decoder/dsf: allow channel setups other than stereo This finishes the multi-channel support. Development of the feature was started with commit 02cc77cd8 --- src/decoder/plugins/DsfDecoderPlugin.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/decoder') diff --git a/src/decoder/plugins/DsfDecoderPlugin.cxx b/src/decoder/plugins/DsfDecoderPlugin.cxx index d150d8146..9791c4fda 100644 --- a/src/decoder/plugins/DsfDecoderPlugin.cxx +++ b/src/decoder/plugins/DsfDecoderPlugin.cxx @@ -134,8 +134,7 @@ dsf_read_metadata(Decoder *decoder, InputStream &is, if (FromLE32(dsf_fmt_chunk.version) != 1 || FromLE32(dsf_fmt_chunk.formatid) != 0 || - FromLE32(dsf_fmt_chunk.channeltype) != 2 || - channels != 2 || + !audio_valid_channel_count(channels) || !dsdlib_valid_freq(samplefreq)) return false; -- cgit v1.2.3