Update dr_wav, dr_flac and dr_mp3.

This commit is contained in:
David Reid
2020-08-02 11:53:41 +10:00
parent 4830c9f5b5
commit 6425fc643a
4 changed files with 180 additions and 177 deletions
+33 -31
View File
@@ -1,6 +1,6 @@
/*
MP3 audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
dr_mp3 - v0.6.15 - 2020-07-25
dr_mp3 - v0.6.16 - 2020-08-02
David Reid - mackron@gmail.com
@@ -95,45 +95,44 @@ extern "C" {
#define DRMP3_VERSION_MAJOR 0
#define DRMP3_VERSION_MINOR 6
#define DRMP3_VERSION_REVISION 15
#define DRMP3_VERSION_REVISION 16
#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. */
/* Sized types. Prefer built-in types. Fall back to stdint. */
#ifdef _MSC_VER
#if defined(__clang__)
/* Sized types. */
typedef signed char drmp3_int8;
typedef unsigned char drmp3_uint8;
typedef signed short drmp3_int16;
typedef unsigned short drmp3_uint16;
typedef signed int drmp3_int32;
typedef unsigned int drmp3_uint32;
#if defined(_MSC_VER)
typedef signed __int64 drmp3_int64;
typedef unsigned __int64 drmp3_uint64;
#else
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlanguage-extension-token"
#pragma GCC diagnostic ignored "-Wlong-long"
#pragma GCC diagnostic ignored "-Wc++11-long-long"
#pragma GCC diagnostic ignored "-Wlong-long"
#if defined(__clang__)
#pragma GCC diagnostic ignored "-Wc++11-long-long"
#endif
#endif
typedef signed __int8 drmp3_int8;
typedef unsigned __int8 drmp3_uint8;
typedef signed __int16 drmp3_int16;
typedef unsigned __int16 drmp3_uint16;
typedef signed __int32 drmp3_int32;
typedef unsigned __int32 drmp3_uint32;
typedef signed __int64 drmp3_int64;
typedef unsigned __int64 drmp3_uint64;
#if defined(__clang__)
typedef signed long long drmp3_int64;
typedef unsigned long long drmp3_uint64;
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
#else
#include <stdint.h>
typedef int8_t drmp3_int8;
typedef uint8_t drmp3_uint8;
typedef int16_t drmp3_int16;
typedef uint16_t drmp3_uint16;
typedef int32_t drmp3_int32;
typedef uint32_t drmp3_uint32;
typedef int64_t drmp3_int64;
typedef uint64_t drmp3_uint64;
#endif
typedef drmp3_uint8 drmp3_bool8;
typedef drmp3_uint32 drmp3_bool32;
#define DRMP3_TRUE 1
#define DRMP3_FALSE 0
#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
typedef drmp3_uint64 drmp3_uintptr;
#else
typedef drmp3_uint32 drmp3_uintptr;
#endif
typedef drmp3_uint8 drmp3_bool8;
typedef drmp3_uint32 drmp3_bool32;
#define DRMP3_TRUE 1
#define DRMP3_FALSE 0
#if !defined(DRMP3_API)
#if defined(DRMP3_DLL)
@@ -4431,6 +4430,9 @@ counts rather than sample counts.
/*
REVISION HISTORY
================
v0.6.16 - 2020-08-02
- Simplify sized types.
v0.6.15 - 2020-07-25
- Fix a compilation warning.