mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Update external libraries.
This commit is contained in:
+5
-2
@@ -1,5 +1,5 @@
|
|||||||
// MP3 audio decoder. Public domain. See "unlicense" statement at the end of this file.
|
// MP3 audio decoder. Public domain. See "unlicense" statement at the end of this file.
|
||||||
// dr_mp3 - v0.2.7 - 2018-07-13
|
// dr_mp3 - v0.2.8 - 2018-08-02
|
||||||
//
|
//
|
||||||
// David Reid - mackron@gmail.com
|
// David Reid - mackron@gmail.com
|
||||||
//
|
//
|
||||||
@@ -354,7 +354,7 @@ void drmp3_free(void* p);
|
|||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
#endif
|
#endif
|
||||||
#include <immintrin.h>
|
#include <emmintrin.h>
|
||||||
#define DRMP3_HAVE_SSE 1
|
#define DRMP3_HAVE_SSE 1
|
||||||
#define DRMP3_HAVE_SIMD 1
|
#define DRMP3_HAVE_SIMD 1
|
||||||
#define DRMP3_VSTORE _mm_storeu_ps
|
#define DRMP3_VSTORE _mm_storeu_ps
|
||||||
@@ -2746,6 +2746,9 @@ void drmp3_free(void* p)
|
|||||||
// REVISION HISTORY
|
// REVISION HISTORY
|
||||||
// ===============
|
// ===============
|
||||||
//
|
//
|
||||||
|
// v0.2.8 - 2018-08-02
|
||||||
|
// - Fix compilation errors with older versions of GCC.
|
||||||
|
//
|
||||||
// v0.2.7 - 2018-07-13
|
// v0.2.7 - 2018-07-13
|
||||||
// - Bring up to date with minimp3.
|
// - Bring up to date with minimp3.
|
||||||
//
|
//
|
||||||
|
|||||||
+4
-15
@@ -1,5 +1,5 @@
|
|||||||
// 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.8.1 - 2018-06-29
|
// dr_wav - v0.8.2 - 2018-08-02
|
||||||
//
|
//
|
||||||
// David Reid - mackron@gmail.com
|
// David Reid - mackron@gmail.com
|
||||||
|
|
||||||
@@ -787,11 +787,7 @@ static DRWAV_INLINE int drwav__is_little_endian()
|
|||||||
|
|
||||||
static DRWAV_INLINE unsigned short drwav__bytes_to_u16(const unsigned char* data)
|
static DRWAV_INLINE unsigned short drwav__bytes_to_u16(const unsigned char* data)
|
||||||
{
|
{
|
||||||
if (drwav__is_little_endian()) {
|
|
||||||
return (data[0] << 0) | (data[1] << 8);
|
return (data[0] << 0) | (data[1] << 8);
|
||||||
} else {
|
|
||||||
return (data[1] << 0) | (data[0] << 8);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DRWAV_INLINE short drwav__bytes_to_s16(const unsigned char* data)
|
static DRWAV_INLINE short drwav__bytes_to_s16(const unsigned char* data)
|
||||||
@@ -801,24 +797,14 @@ static DRWAV_INLINE short drwav__bytes_to_s16(const unsigned char* data)
|
|||||||
|
|
||||||
static DRWAV_INLINE unsigned int drwav__bytes_to_u32(const unsigned char* data)
|
static DRWAV_INLINE unsigned int drwav__bytes_to_u32(const unsigned char* data)
|
||||||
{
|
{
|
||||||
if (drwav__is_little_endian()) {
|
|
||||||
return (data[0] << 0) | (data[1] << 8) | (data[2] << 16) | (data[3] << 24);
|
return (data[0] << 0) | (data[1] << 8) | (data[2] << 16) | (data[3] << 24);
|
||||||
} else {
|
|
||||||
return (data[3] << 0) | (data[2] << 8) | (data[1] << 16) | (data[0] << 24);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DRWAV_INLINE drwav_uint64 drwav__bytes_to_u64(const unsigned char* data)
|
static DRWAV_INLINE drwav_uint64 drwav__bytes_to_u64(const unsigned char* data)
|
||||||
{
|
{
|
||||||
if (drwav__is_little_endian()) {
|
|
||||||
return
|
return
|
||||||
((drwav_uint64)data[0] << 0) | ((drwav_uint64)data[1] << 8) | ((drwav_uint64)data[2] << 16) | ((drwav_uint64)data[3] << 24) |
|
((drwav_uint64)data[0] << 0) | ((drwav_uint64)data[1] << 8) | ((drwav_uint64)data[2] << 16) | ((drwav_uint64)data[3] << 24) |
|
||||||
((drwav_uint64)data[4] << 32) | ((drwav_uint64)data[5] << 40) | ((drwav_uint64)data[6] << 48) | ((drwav_uint64)data[7] << 56);
|
((drwav_uint64)data[4] << 32) | ((drwav_uint64)data[5] << 40) | ((drwav_uint64)data[6] << 48) | ((drwav_uint64)data[7] << 56);
|
||||||
} else {
|
|
||||||
return
|
|
||||||
((drwav_uint64)data[7] << 0) | ((drwav_uint64)data[6] << 8) | ((drwav_uint64)data[5] << 16) | ((drwav_uint64)data[4] << 24) |
|
|
||||||
((drwav_uint64)data[3] << 32) | ((drwav_uint64)data[2] << 40) | ((drwav_uint64)data[1] << 48) | ((drwav_uint64)data[0] << 56);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DRWAV_INLINE void drwav__bytes_to_guid(const unsigned char* data, drwav_uint8* guid)
|
static DRWAV_INLINE void drwav__bytes_to_guid(const unsigned char* data, drwav_uint8* guid)
|
||||||
@@ -3594,6 +3580,9 @@ void drwav_free(void* pDataReturnedByOpenAndRead)
|
|||||||
|
|
||||||
// REVISION HISTORY
|
// REVISION HISTORY
|
||||||
//
|
//
|
||||||
|
// v0.8.2 - 2018-08-02
|
||||||
|
// - Fix some big-endian bugs.
|
||||||
|
//
|
||||||
// v0.8.1 - 2018-06-29
|
// v0.8.1 - 2018-06-29
|
||||||
// - Add support for sequential writing APIs.
|
// - Add support for sequential writing APIs.
|
||||||
// - Disable seeking in write mode.
|
// - Disable seeking in write mode.
|
||||||
|
|||||||
Reference in New Issue
Block a user