Commit b067926d authored by David Reid's avatar David Reid

Update FLAC, MP3 and WAV decoders.

parent 4f78581a
/* /*
FLAC audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file. FLAC audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
dr_flac - v0.12.15 - 2020-07-06 dr_flac - v0.12.16 - 2020-07-25
David Reid - mackron@gmail.com David Reid - mackron@gmail.com
...@@ -232,7 +232,7 @@ extern "C" { ...@@ -232,7 +232,7 @@ extern "C" {
#define DRFLAC_VERSION_MAJOR 0 #define DRFLAC_VERSION_MAJOR 0
#define DRFLAC_VERSION_MINOR 12 #define DRFLAC_VERSION_MINOR 12
#define DRFLAC_VERSION_REVISION 15 #define DRFLAC_VERSION_REVISION 16
#define DRFLAC_VERSION_STRING DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MAJOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MINOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_REVISION) #define DRFLAC_VERSION_STRING DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MAJOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MINOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_REVISION)
#include <stddef.h> /* For size_t. */ #include <stddef.h> /* For size_t. */
...@@ -317,7 +317,7 @@ typedef drflac_uint32 drflac_bool32; ...@@ -317,7 +317,7 @@ typedef drflac_uint32 drflac_bool32;
#endif #endif
DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drflac_uint32* pRevision); DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drflac_uint32* pRevision);
DRFLAC_API const char* drflac_version_string(); DRFLAC_API const char* drflac_version_string(void);
/* /*
As data is read from the client it is placed into an internal buffer for fast access. This controls the size of that buffer. Larger values means more speed, As data is read from the client it is placed into an internal buffer for fast access. This controls the size of that buffer. Larger values means more speed,
...@@ -1673,7 +1673,7 @@ DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drf ...@@ -1673,7 +1673,7 @@ DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drf
} }
} }
DRFLAC_API const char* drflac_version_string() DRFLAC_API const char* drflac_version_string(void)
{ {
return DRFLAC_VERSION_STRING; return DRFLAC_VERSION_STRING;
} }
...@@ -11752,6 +11752,9 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat ...@@ -11752,6 +11752,9 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat
/* /*
REVISION HISTORY REVISION HISTORY
================ ================
v0.12.16 - 2020-07-25
- Fix a compilation warning.
v0.12.15 - 2020-07-06 v0.12.15 - 2020-07-06
- Check for negative LPC shifts and return an error. - Check for negative LPC shifts and return an error.
......
/* /*
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.14 - 2020-07-23 dr_mp3 - v0.6.15 - 2020-07-25
David Reid - mackron@gmail.com David Reid - mackron@gmail.com
...@@ -95,7 +95,7 @@ extern "C" { ...@@ -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 14 #define DRMP3_VERSION_REVISION 15
#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. */
...@@ -246,7 +246,7 @@ typedef drmp3_int32 drmp3_result; ...@@ -246,7 +246,7 @@ typedef drmp3_int32 drmp3_result;
DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision); DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision);
DRMP3_API const char* drmp3_version_string(); DRMP3_API const char* drmp3_version_string(void);
/* /*
...@@ -545,7 +545,7 @@ DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_u ...@@ -545,7 +545,7 @@ DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_u
} }
} }
DRMP3_API const char* drmp3_version_string() DRMP3_API const char* drmp3_version_string(void)
{ {
return DRMP3_VERSION_STRING; return DRMP3_VERSION_STRING;
} }
...@@ -4431,6 +4431,9 @@ counts rather than sample counts. ...@@ -4431,6 +4431,9 @@ counts rather than sample counts.
/* /*
REVISION HISTORY REVISION HISTORY
================ ================
v0.6.15 - 2020-07-25
- Fix a compilation warning.
v0.6.14 - 2020-07-23 v0.6.14 - 2020-07-23
- Fix undefined behaviour with memmove(). - Fix undefined behaviour with memmove().
......
/* /*
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.7 - 2020-07-15 dr_wav - v0.12.8 - 2020-07-25
David Reid - mackron@gmail.com David Reid - mackron@gmail.com
...@@ -144,7 +144,7 @@ extern "C" { ...@@ -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 7 #define DRWAV_VERSION_REVISION 8
#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. */
...@@ -288,7 +288,7 @@ typedef drwav_int32 drwav_result; ...@@ -288,7 +288,7 @@ typedef drwav_int32 drwav_result;
#define DRWAV_SEQUENTIAL 0x00000001 #define DRWAV_SEQUENTIAL 0x00000001
DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision); DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision);
DRWAV_API const char* drwav_version_string(); DRWAV_API const char* drwav_version_string(void);
typedef enum typedef enum
{ {
...@@ -1076,7 +1076,7 @@ DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_u ...@@ -1076,7 +1076,7 @@ DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_u
} }
} }
DRWAV_API const char* drwav_version_string() DRWAV_API const char* drwav_version_string(void)
{ {
return DRWAV_VERSION_STRING; return DRWAV_VERSION_STRING;
} }
...@@ -5926,6 +5926,9 @@ two different ways to initialize a drwav object. ...@@ -5926,6 +5926,9 @@ two different ways to initialize a drwav object.
/* /*
REVISION HISTORY REVISION HISTORY
================ ================
v0.12.8 - 2020-07-25
- Fix a compilation warning.
v0.12.7 - 2020-07-15 v0.12.7 - 2020-07-15
- Fix some bugs on big-endian architectures. - Fix some bugs on big-endian architectures.
- Fix an error in s24 to f32 conversion. - Fix an error in s24 to f32 conversion.
......
...@@ -42305,7 +42305,7 @@ extern "C" { ...@@ -42305,7 +42305,7 @@ extern "C" {
#define DRWAV_XSTRINGIFY(x) DRWAV_STRINGIFY(x) #define DRWAV_XSTRINGIFY(x) DRWAV_STRINGIFY(x)
#define DRWAV_VERSION_MAJOR 0 #define DRWAV_VERSION_MAJOR 0
#define DRWAV_VERSION_MINOR 12 #define DRWAV_VERSION_MINOR 12
#define DRWAV_VERSION_REVISION 7 #define DRWAV_VERSION_REVISION 8
#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> #include <stddef.h>
#ifdef _MSC_VER #ifdef _MSC_VER
...@@ -42436,7 +42436,7 @@ typedef drwav_int32 drwav_result; ...@@ -42436,7 +42436,7 @@ typedef drwav_int32 drwav_result;
#endif #endif
#define DRWAV_SEQUENTIAL 0x00000001 #define DRWAV_SEQUENTIAL 0x00000001
DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision); DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_uint32* pRevision);
DRWAV_API const char* drwav_version_string(); DRWAV_API const char* drwav_version_string(void);
typedef enum typedef enum
{ {
drwav_seek_origin_start, drwav_seek_origin_start,
...@@ -42678,7 +42678,7 @@ extern "C" { ...@@ -42678,7 +42678,7 @@ extern "C" {
#define DRFLAC_XSTRINGIFY(x) DRFLAC_STRINGIFY(x) #define DRFLAC_XSTRINGIFY(x) DRFLAC_STRINGIFY(x)
#define DRFLAC_VERSION_MAJOR 0 #define DRFLAC_VERSION_MAJOR 0
#define DRFLAC_VERSION_MINOR 12 #define DRFLAC_VERSION_MINOR 12
#define DRFLAC_VERSION_REVISION 15 #define DRFLAC_VERSION_REVISION 16
#define DRFLAC_VERSION_STRING DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MAJOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MINOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_REVISION) #define DRFLAC_VERSION_STRING DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MAJOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MINOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_REVISION)
#include <stddef.h> #include <stddef.h>
#ifdef _MSC_VER #ifdef _MSC_VER
...@@ -42756,7 +42756,7 @@ typedef drflac_uint32 drflac_bool32; ...@@ -42756,7 +42756,7 @@ typedef drflac_uint32 drflac_bool32;
#define DRFLAC_DEPRECATED #define DRFLAC_DEPRECATED
#endif #endif
DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drflac_uint32* pRevision); DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drflac_uint32* pRevision);
DRFLAC_API const char* drflac_version_string(); DRFLAC_API const char* drflac_version_string(void);
#ifndef DR_FLAC_BUFFER_SIZE #ifndef DR_FLAC_BUFFER_SIZE
#define DR_FLAC_BUFFER_SIZE 4096 #define DR_FLAC_BUFFER_SIZE 4096
#endif #endif
...@@ -43040,7 +43040,7 @@ extern "C" { ...@@ -43040,7 +43040,7 @@ extern "C" {
#define DRMP3_XSTRINGIFY(x) DRMP3_STRINGIFY(x) #define DRMP3_XSTRINGIFY(x) DRMP3_STRINGIFY(x)
#define DRMP3_VERSION_MAJOR 0 #define DRMP3_VERSION_MAJOR 0
#define DRMP3_VERSION_MINOR 6 #define DRMP3_VERSION_MINOR 6
#define DRMP3_VERSION_REVISION 14 #define DRMP3_VERSION_REVISION 15
#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> #include <stddef.h>
#ifdef _MSC_VER #ifdef _MSC_VER
...@@ -43173,7 +43173,7 @@ typedef drmp3_int32 drmp3_result; ...@@ -43173,7 +43173,7 @@ typedef drmp3_int32 drmp3_result;
#define DRMP3_INLINE #define DRMP3_INLINE
#endif #endif
DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision); DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_uint32* pRevision);
DRMP3_API const char* drmp3_version_string(); DRMP3_API const char* drmp3_version_string(void);
typedef struct typedef struct
{ {
int frame_bytes, channels, hz, layer, bitrate_kbps; int frame_bytes, channels, hz, layer, bitrate_kbps;
...@@ -46848,7 +46848,7 @@ DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_u ...@@ -46848,7 +46848,7 @@ DRWAV_API void drwav_version(drwav_uint32* pMajor, drwav_uint32* pMinor, drwav_u
*pRevision = DRWAV_VERSION_REVISION; *pRevision = DRWAV_VERSION_REVISION;
} }
} }
DRWAV_API const char* drwav_version_string() DRWAV_API const char* drwav_version_string(void)
{ {
return DRWAV_VERSION_STRING; return DRWAV_VERSION_STRING;
} }
...@@ -50761,7 +50761,7 @@ DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drf ...@@ -50761,7 +50761,7 @@ DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drf
*pRevision = DRFLAC_VERSION_REVISION; *pRevision = DRFLAC_VERSION_REVISION;
} }
} }
DRFLAC_API const char* drflac_version_string() DRFLAC_API const char* drflac_version_string(void)
{ {
return DRFLAC_VERSION_STRING; return DRFLAC_VERSION_STRING;
} }
...@@ -58623,7 +58623,7 @@ DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_u ...@@ -58623,7 +58623,7 @@ DRMP3_API void drmp3_version(drmp3_uint32* pMajor, drmp3_uint32* pMinor, drmp3_u
*pRevision = DRMP3_VERSION_REVISION; *pRevision = DRMP3_VERSION_REVISION;
} }
} }
DRMP3_API const char* drmp3_version_string() DRMP3_API const char* drmp3_version_string(void)
{ {
return DRMP3_VERSION_STRING; return DRMP3_VERSION_STRING;
} }
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