decoder/dsf: Allow up to DSD512. Enable DSD rates based on Fs=48kHz

This commit is contained in:
Jurgen Kramer
2014-07-04 14:15:09 +02:00
committed by Max Kellermann
parent 7c3af4f56f
commit 9b9d189a33
4 changed files with 28 additions and 1 deletions

View File

@@ -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);