Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
88a694af
Commit
88a694af
authored
Aug 02, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update external libraries.
parent
ab6c1b35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
22 deletions
+14
-22
extras/dr_mp3.h
extras/dr_mp3.h
+5
-2
extras/dr_wav.h
extras/dr_wav.h
+9
-20
No files found.
extras/dr_mp3.h
View file @
88a694af
// 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
//
...
...
@@ -354,7 +354,7 @@ void drmp3_free(void* p);
#if defined(_MSC_VER)
#include <intrin.h>
#endif
#include <
i
mmintrin.h>
#include <
e
mmintrin.h>
#define DRMP3_HAVE_SSE 1
#define DRMP3_HAVE_SIMD 1
#define DRMP3_VSTORE _mm_storeu_ps
...
...
@@ -2746,6 +2746,9 @@ void drmp3_free(void* p)
// REVISION HISTORY
// ===============
//
// v0.2.8 - 2018-08-02
// - Fix compilation errors with older versions of GCC.
//
// v0.2.7 - 2018-07-13
// - Bring up to date with minimp3.
//
...
...
extras/dr_wav.h
View file @
88a694af
// 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
...
...
@@ -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
)
{
if
(
drwav__is_little_endian
())
{
return
(
data
[
0
]
<<
0
)
|
(
data
[
1
]
<<
8
);
}
else
{
return
(
data
[
1
]
<<
0
)
|
(
data
[
0
]
<<
8
);
}
return
(
data
[
0
]
<<
0
)
|
(
data
[
1
]
<<
8
);
}
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
)
{
if
(
drwav__is_little_endian
())
{
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
);
}
return
(
data
[
0
]
<<
0
)
|
(
data
[
1
]
<<
8
)
|
(
data
[
2
]
<<
16
)
|
(
data
[
3
]
<<
24
);
}
static
DRWAV_INLINE
drwav_uint64
drwav__bytes_to_u64
(
const
unsigned
char
*
data
)
{
if
(
drwav__is_little_endian
())
{
return
((
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
);
}
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
);
}
return
((
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
);
}
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
//
// v0.8.2 - 2018-08-02
// - Fix some big-endian bugs.
//
// v0.8.1 - 2018-06-29
// - Add support for sequential writing APIs.
// - Disable seeking in write mode.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment