From 9b9d189a333705818783e51da10d21511379124f Mon Sep 17 00:00:00 2001 From: Jurgen Kramer Date: Fri, 4 Jul 2014 14:15:09 +0200 Subject: decoder/dsf: Allow up to DSD512. Enable DSD rates based on Fs=48kHz --- src/decoder/plugins/DsfDecoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder/plugins/DsfDecoderPlugin.cxx') diff --git a/src/decoder/plugins/DsfDecoderPlugin.cxx b/src/decoder/plugins/DsfDecoderPlugin.cxx index dc94d149c..94c25247d 100644 --- a/src/decoder/plugins/DsfDecoderPlugin.cxx +++ b/src/decoder/plugins/DsfDecoderPlugin.cxx @@ -131,7 +131,7 @@ dsf_read_metadata(Decoder *decoder, InputStream &is, if (dsf_fmt_chunk.version != 1 || dsf_fmt_chunk.formatid != 0 || dsf_fmt_chunk.channeltype != 2 || dsf_fmt_chunk.channelnum != 2 - || (samplefreq != 2822400 && samplefreq != 5644800)) + || (!dsdlib_valid_freq(samplefreq))) return false; uint32_t chblksize = FromLE32(dsf_fmt_chunk.block_size); -- cgit v1.2.3