Commit 4603322a authored by David Reid's avatar David Reid

Update dr_wav.

parent 7c24036c
// WAV audio loader and writer. Public domain. See "unlicense" statement at the end of this file. // WAV audio loader and writer. Public domain. See "unlicense" statement at the end of this file.
// dr_wav - v0.7f - 2018-02-05 // dr_wav - v0.8 - 2018-04-27
// //
// David Reid - mackron@gmail.com // David Reid - mackron@gmail.com
...@@ -902,8 +902,8 @@ static drwav_bool32 drwav__read_fmt(drwav_read_proc onRead, drwav_seek_proc onSe ...@@ -902,8 +902,8 @@ static drwav_bool32 drwav__read_fmt(drwav_read_proc onRead, drwav_seek_proc onSe
} }
// Skip junk chunks. // Skip non-fmt chunks.
if ((container == drwav_container_riff && drwav__fourcc_equal(header.id.fourcc, "JUNK")) || (container == drwav_container_w64 && drwav__guid_equal(header.id.guid, drwavGUID_W64_JUNK))) { if ((container == drwav_container_riff && !drwav__fourcc_equal(header.id.fourcc, "fmt ")) || (container == drwav_container_w64 && !drwav__guid_equal(header.id.guid, drwavGUID_W64_FMT))) {
if (!drwav__seek_forward(onSeek, header.sizeInBytes + header.paddingSize, pUserData)) { if (!drwav__seek_forward(onSeek, header.sizeInBytes + header.paddingSize, pUserData)) {
return DRWAV_FALSE; return DRWAV_FALSE;
} }
...@@ -3439,6 +3439,10 @@ void drwav_free(void* pDataReturnedByOpenAndRead) ...@@ -3439,6 +3439,10 @@ void drwav_free(void* pDataReturnedByOpenAndRead)
// REVISION HISTORY // REVISION HISTORY
// //
// v0.8 - 2018-04-27
// - Bug fix.
// - Start using major.minor.revision versioning.
//
// v0.7f - 2018-02-05 // v0.7f - 2018-02-05
// - Restrict ADPCM formats to a maximum of 2 channels. // - Restrict ADPCM formats to a maximum of 2 channels.
// //
......
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