Skip to content

Commit

Permalink
oopsie. Fix WAV 64-bit decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Piolat committed Dec 30, 2021
1 parent 516d1c9 commit 0ce9fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/audioformats/wav.d
Expand Up @@ -91,7 +91,7 @@ version(decodeWAV)
int bytesPerFrame = _io.read_ushort_LE(_userData);
bitsPerSample = _io.read_ushort_LE(_userData);

if (bitsPerSample != 8 && bitsPerSample != 16 && bitsPerSample != 24 && bitsPerSample != 32)
if (bitsPerSample != 8 && bitsPerSample != 16 && bitsPerSample != 24 && bitsPerSample != 32 && bitsPerSample != 64)
throw mallocNew!Exception("Unsupported bitdepth");

if (bytesPerFrame != (bitsPerSample / 8) * _channels)
Expand Down

0 comments on commit 0ce9fa7

Please sign in to comment.