mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 08:44:04 +02:00
Update external libraries.
This commit is contained in:
+42
-1
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
FLAC audio decoder. Choice of public domain or MIT-0. See license statements at the end of this file.
|
||||
dr_flac - v0.12.12 - 2020-04-30
|
||||
dr_flac - v0.12.13 - 2020-05-16
|
||||
|
||||
David Reid - mackron@gmail.com
|
||||
|
||||
@@ -227,6 +227,14 @@ Notes
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define DRFLAC_STRINGIFY(x) #x
|
||||
#define DRFLAC_XSTRINGIFY(x) DRFLAC_STRINGIFY(x)
|
||||
|
||||
#define DRFLAC_VERSION_MAJOR 0
|
||||
#define DRFLAC_VERSION_MINOR 12
|
||||
#define DRFLAC_VERSION_REVISION 13
|
||||
#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. */
|
||||
|
||||
/* Sized types. Prefer built-in types. Fall back to stdint. */
|
||||
@@ -308,6 +316,9 @@ typedef drflac_uint32 drflac_bool32;
|
||||
#define DRFLAC_DEPRECATED
|
||||
#endif
|
||||
|
||||
DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drflac_uint32* pRevision);
|
||||
DRFLAC_API const char* drflac_version_string();
|
||||
|
||||
/*
|
||||
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,
|
||||
but also more memory. In my testing there is diminishing returns after about 4KB, but you can fiddle with this to suit your own needs. Must be a multiple of 8.
|
||||
@@ -1645,6 +1656,27 @@ typedef drflac_int32 drflac_result;
|
||||
#define drflac_align(x, a) ((((x) + (a) - 1) / (a)) * (a))
|
||||
|
||||
|
||||
DRFLAC_API void drflac_version(drflac_uint32* pMajor, drflac_uint32* pMinor, drflac_uint32* pRevision)
|
||||
{
|
||||
if (pMajor) {
|
||||
*pMajor = DRFLAC_VERSION_MAJOR;
|
||||
}
|
||||
|
||||
if (pMinor) {
|
||||
*pMinor = DRFLAC_VERSION_MINOR;
|
||||
}
|
||||
|
||||
if (pRevision) {
|
||||
*pRevision = DRFLAC_VERSION_REVISION;
|
||||
}
|
||||
}
|
||||
|
||||
DRFLAC_API const char* drflac_version_string()
|
||||
{
|
||||
return DRFLAC_VERSION_STRING;
|
||||
}
|
||||
|
||||
|
||||
/* CPU caps. */
|
||||
#if defined(__has_feature)
|
||||
#if __has_feature(thread_sanitizer)
|
||||
@@ -11705,6 +11737,15 @@ DRFLAC_API drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterat
|
||||
/*
|
||||
REVISION HISTORY
|
||||
================
|
||||
v0.12.13 - 2020-05-16
|
||||
- Add compile-time and run-time version querying.
|
||||
- DRFLAC_VERSION_MINOR
|
||||
- DRFLAC_VERSION_MAJOR
|
||||
- DRFLAC_VERSION_REVISION
|
||||
- DRFLAC_VERSION_STRING
|
||||
- drflac_version()
|
||||
- drflac_version_string()
|
||||
|
||||
v0.12.12 - 2020-04-30
|
||||
- Fix compilation errors with VC6.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user