aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder/plugins/DsfDecoderPlugin.cxx
diff options
context:
space:
mode:
authorJurgen Kramer <gtmkramer@xs4all.nl>2014-07-04 14:15:09 +0200
committerMax Kellermann <max@duempel.org>2014-08-16 18:40:53 +0200
commit9b9d189a333705818783e51da10d21511379124f (patch)
treebecd8f1e7d541e93d504f1779a0dd221064cdec4 /src/decoder/plugins/DsfDecoderPlugin.cxx
parent7c3af4f56f7171aacbe9bd26f2b30bb4f94e88f2 (diff)
downloadmpd-9b9d189a333705818783e51da10d21511379124f.tar.gz
mpd-9b9d189a333705818783e51da10d21511379124f.tar.xz
mpd-9b9d189a333705818783e51da10d21511379124f.zip
decoder/dsf: Allow up to DSD512. Enable DSD rates based on Fs=48kHz
Diffstat (limited to '')
-rw-r--r--src/decoder/plugins/DsfDecoderPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
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);