Commit f4b61e8c authored by Jurgen Kramer's avatar Jurgen Kramer Committed by Max Kellermann

decoder/dsf: enable DSD128

parent e49a3d37
ver 0.18.2 (2013/??/??) ver 0.18.2 (2013/??/??)
* decoder:
- dsf: enable DSD128
* fix build failures due to missing includes * fix build failures due to missing includes
ver 0.18.1 (2013/11/04) ver 0.18.1 (2013/11/04)
......
...@@ -128,12 +128,12 @@ dsf_read_metadata(Decoder *decoder, InputStream &is, ...@@ -128,12 +128,12 @@ dsf_read_metadata(Decoder *decoder, InputStream &is,
uint32_t samplefreq = FromLE32(dsf_fmt_chunk.sample_freq); uint32_t samplefreq = FromLE32(dsf_fmt_chunk.sample_freq);
/* for now, only support version 1 of the standard, DSD raw stereo /* 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 if (dsf_fmt_chunk.version != 1 || dsf_fmt_chunk.formatid != 0
|| dsf_fmt_chunk.channeltype != 2 || dsf_fmt_chunk.channeltype != 2
|| dsf_fmt_chunk.channelnum != 2 || dsf_fmt_chunk.channelnum != 2
|| samplefreq != 2822400) || (samplefreq != 2822400 && samplefreq != 5644800))
return false; return false;
uint32_t chblksize = FromLE32(dsf_fmt_chunk.block_size); uint32_t chblksize = FromLE32(dsf_fmt_chunk.block_size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment