mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 01:04:02 +02:00
Update dr_wav and dr_mp3.
This commit is contained in:
+7
-3
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
MP3 audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
|
MP3 audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
|
||||||
dr_mp3 - v0.6.10 - 2020-05-16
|
dr_mp3 - v0.6.11 - 2020-05-26
|
||||||
|
|
||||||
David Reid - mackron@gmail.com
|
David Reid - mackron@gmail.com
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ extern "C" {
|
|||||||
|
|
||||||
#define DRMP3_VERSION_MAJOR 0
|
#define DRMP3_VERSION_MAJOR 0
|
||||||
#define DRMP3_VERSION_MINOR 6
|
#define DRMP3_VERSION_MINOR 6
|
||||||
#define DRMP3_VERSION_REVISION 10
|
#define DRMP3_VERSION_REVISION 11
|
||||||
#define DRMP3_VERSION_STRING DRMP3_XSTRINGIFY(DRMP3_VERSION_MAJOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_MINOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_REVISION)
|
#define DRMP3_VERSION_STRING DRMP3_XSTRINGIFY(DRMP3_VERSION_MAJOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_MINOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_REVISION)
|
||||||
|
|
||||||
#include <stddef.h> /* For size_t. */
|
#include <stddef.h> /* For size_t. */
|
||||||
@@ -2751,11 +2751,12 @@ static drmp3_uint32 drmp3_decode_next_frame_ex__memory(drmp3* pMP3, drmp3d_sampl
|
|||||||
}
|
}
|
||||||
|
|
||||||
pcmFramesRead = drmp3dec_decode_frame(&pMP3->decoder, pMP3->memory.pData + pMP3->memory.currentReadPos, (int)(pMP3->memory.dataSize - pMP3->memory.currentReadPos), pPCMFrames, &info);
|
pcmFramesRead = drmp3dec_decode_frame(&pMP3->decoder, pMP3->memory.pData + pMP3->memory.currentReadPos, (int)(pMP3->memory.dataSize - pMP3->memory.currentReadPos), pPCMFrames, &info);
|
||||||
|
if (pcmFramesRead > 0) {
|
||||||
pMP3->pcmFramesConsumedInMP3Frame = 0;
|
pMP3->pcmFramesConsumedInMP3Frame = 0;
|
||||||
pMP3->pcmFramesRemainingInMP3Frame = pcmFramesRead;
|
pMP3->pcmFramesRemainingInMP3Frame = pcmFramesRead;
|
||||||
pMP3->mp3FrameChannels = info.channels;
|
pMP3->mp3FrameChannels = info.channels;
|
||||||
pMP3->mp3FrameSampleRate = info.hz;
|
pMP3->mp3FrameSampleRate = info.hz;
|
||||||
|
}
|
||||||
|
|
||||||
/* Consume the data. */
|
/* Consume the data. */
|
||||||
pMP3->memory.currentReadPos += (size_t)info.frame_bytes;
|
pMP3->memory.currentReadPos += (size_t)info.frame_bytes;
|
||||||
@@ -4423,6 +4424,9 @@ counts rather than sample counts.
|
|||||||
/*
|
/*
|
||||||
REVISION HISTORY
|
REVISION HISTORY
|
||||||
================
|
================
|
||||||
|
v0.6.11 - 2020-05-26
|
||||||
|
- Fix use of uninitialized variable error.
|
||||||
|
|
||||||
v0.6.10 - 2020-05-16
|
v0.6.10 - 2020-05-16
|
||||||
- Add compile-time and run-time version querying.
|
- Add compile-time and run-time version querying.
|
||||||
- DRMP3_VERSION_MINOR
|
- DRMP3_VERSION_MINOR
|
||||||
|
|||||||
+6
-3
@@ -1,6 +1,6 @@
|
|||||||
/*
|
/*
|
||||||
WAV audio loader and writer. Choice of public domain or MIT-0. See license statements at the end of this file.
|
WAV audio loader and writer. Choice of public domain or MIT-0. See license statements at the end of this file.
|
||||||
dr_wav - v0.12.4 - 2020-05-16
|
dr_wav - v0.12.5 - 2020-05-27
|
||||||
|
|
||||||
David Reid - mackron@gmail.com
|
David Reid - mackron@gmail.com
|
||||||
|
|
||||||
@@ -15,7 +15,7 @@ Version 0.12 includes breaking changes to custom chunk handling.
|
|||||||
|
|
||||||
Changes to Chunk Callback
|
Changes to Chunk Callback
|
||||||
-------------------------
|
-------------------------
|
||||||
dr_wav supports the ability to fire a callback when a chunk is encounted (except for WAVE and FMT chunks). The callback has been update to include both the
|
dr_wav supports the ability to fire a callback when a chunk is encounted (except for WAVE and FMT chunks). The callback has been updated to include both the
|
||||||
container (RIFF or Wave64) and the FMT chunk which contains information about the format of the data in the wave file.
|
container (RIFF or Wave64) and the FMT chunk which contains information about the format of the data in the wave file.
|
||||||
|
|
||||||
Previously, there was no direct way to determine the container, and therefore no way discriminate against the different IDs in the chunk header (RIFF and
|
Previously, there was no direct way to determine the container, and therefore no way discriminate against the different IDs in the chunk header (RIFF and
|
||||||
@@ -144,7 +144,7 @@ extern "C" {
|
|||||||
|
|
||||||
#define DRWAV_VERSION_MAJOR 0
|
#define DRWAV_VERSION_MAJOR 0
|
||||||
#define DRWAV_VERSION_MINOR 12
|
#define DRWAV_VERSION_MINOR 12
|
||||||
#define DRWAV_VERSION_REVISION 4
|
#define DRWAV_VERSION_REVISION 5
|
||||||
#define DRWAV_VERSION_STRING DRWAV_XSTRINGIFY(DRWAV_VERSION_MAJOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_MINOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_REVISION)
|
#define DRWAV_VERSION_STRING DRWAV_XSTRINGIFY(DRWAV_VERSION_MAJOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_MINOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_REVISION)
|
||||||
|
|
||||||
#include <stddef.h> /* For size_t. */
|
#include <stddef.h> /* For size_t. */
|
||||||
@@ -5784,6 +5784,9 @@ two different ways to initialize a drwav object.
|
|||||||
/*
|
/*
|
||||||
REVISION HISTORY
|
REVISION HISTORY
|
||||||
================
|
================
|
||||||
|
v0.12.5 - 2020-05-27
|
||||||
|
- Minor documentation fix.
|
||||||
|
|
||||||
v0.12.4 - 2020-05-16
|
v0.12.4 - 2020-05-16
|
||||||
- Replace assert() with DRWAV_ASSERT().
|
- Replace assert() with DRWAV_ASSERT().
|
||||||
- Add compile-time and run-time version querying.
|
- Add compile-time and run-time version querying.
|
||||||
|
|||||||
Reference in New Issue
Block a user