diff options
author | Jurgen Kramer <gtmkramer@xs4all.nl> | 2013-11-04 13:20:09 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-11-05 17:38:48 +0100 |
commit | f4b61e8c8dc04e89514677018900ac357d4f5a2b (patch) | |
tree | ea0cbcf1ed3a6e963e43cac7cb999b2bf023cf4d /src | |
parent | e49a3d377fe6a56176377864a6655ab67dc98fb9 (diff) |
decoder/dsf: enable DSD128
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder/DsfDecoderPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder/DsfDecoderPlugin.cxx b/src/decoder/DsfDecoderPlugin.cxx index 065bc7958..0507f5047 100644 --- a/src/decoder/DsfDecoderPlugin.cxx +++ b/src/decoder/DsfDecoderPlugin.cxx @@ -128,12 +128,12 @@ dsf_read_metadata(Decoder *decoder, InputStream &is, uint32_t samplefreq = FromLE32(dsf_fmt_chunk.sample_freq); /* for now, only support version 1 of the standard, DSD raw stereo - files with a sample freq of 2822400 Hz */ + files with a sample freq of 2822400 or 5644800 Hz */ if (dsf_fmt_chunk.version != 1 || dsf_fmt_chunk.formatid != 0 || dsf_fmt_chunk.channeltype != 2 || dsf_fmt_chunk.channelnum != 2 - || samplefreq != 2822400) + || (samplefreq != 2822400 && samplefreq != 5644800)) return false; uint32_t chblksize = FromLE32(dsf_fmt_chunk.block_size); |