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
73e1589a
Commit
73e1589a
authored
Jun 11, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dr_wav.
Public issue
https://github.com/mackron/miniaudio/issues/320
parent
8234df87
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
extras/dr_wav.h
extras/dr_wav.h
+8
-5
miniaudio.h
miniaudio.h
+4
-4
No files found.
extras/dr_wav.h
View file @
73e1589a
/*
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.
19 - 2021-02-2
1
dr_wav - v0.12.
20 - 2021-06-1
1
David Reid - mackron@gmail.com
...
...
@@ -144,7 +144,7 @@ extern "C" {
#define DRWAV_VERSION_MAJOR 0
#define DRWAV_VERSION_MINOR 12
#define DRWAV_VERSION_REVISION
19
#define DRWAV_VERSION_REVISION
20
#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. */
...
...
@@ -5771,17 +5771,17 @@ DRWAV_API void drwav_free(void* p, const drwav_allocation_callbacks* pAllocation
DRWAV_API
drwav_uint16
drwav_bytes_to_u16
(
const
drwav_uint8
*
data
)
{
return
(
data
[
0
]
<<
0
)
|
(
data
[
1
]
<<
8
);
return
(
(
drwav_uint16
)
data
[
0
]
<<
0
)
|
((
drwav_uint16
)
data
[
1
]
<<
8
);
}
DRWAV_API
drwav_int16
drwav_bytes_to_s16
(
const
drwav_uint8
*
data
)
{
return
(
short
)
drwav_bytes_to_u16
(
data
);
return
(
drwav_int16
)
drwav_bytes_to_u16
(
data
);
}
DRWAV_API
drwav_uint32
drwav_bytes_to_u32
(
const
drwav_uint8
*
data
)
{
return
(
data
[
0
]
<<
0
)
|
(
data
[
1
]
<<
8
)
|
(
data
[
2
]
<<
16
)
|
(
data
[
3
]
<<
24
);
return
(
(
drwav_uint32
)
data
[
0
]
<<
0
)
|
((
drwav_uint32
)
data
[
1
]
<<
8
)
|
((
drwav_uint32
)
data
[
2
]
<<
16
)
|
((
drwav_uint32
)
data
[
3
]
<<
24
);
}
DRWAV_API
drwav_int32
drwav_bytes_to_s32
(
const
drwav_uint8
*
data
)
...
...
@@ -6014,6 +6014,9 @@ two different ways to initialize a drwav object.
/*
REVISION HISTORY
================
v0.12.20 - 2021-06-11
- Fix some undefined behavior.
v0.12.19 - 2021-02-21
- Fix a warning due to referencing _MSC_VER when it is undefined.
- Minor improvements to the management of some internal state concerning the data chunk cursor.
...
...
miniaudio.h
View file @
73e1589a
...
...
@@ -45374,7 +45374,7 @@ extern "C" {
#define DRWAV_XSTRINGIFY(x) DRWAV_STRINGIFY(x)
#define DRWAV_VERSION_MAJOR 0
#define DRWAV_VERSION_MINOR 12
#define DRWAV_VERSION_REVISION
19
#define DRWAV_VERSION_REVISION
20
#define DRWAV_VERSION_STRING DRWAV_XSTRINGIFY(DRWAV_VERSION_MAJOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_MINOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_REVISION)
#include <stddef.h>
typedef signed char drwav_int8;
...
...
@@ -53739,15 +53739,15 @@ DRWAV_API void drwav_free(void* p, const drwav_allocation_callbacks* pAllocation
}
DRWAV_API drwav_uint16 drwav_bytes_to_u16(const drwav_uint8* data)
{
return (
data[0] << 0) | (
data[1] << 8);
return (
(drwav_uint16)data[0] << 0) | ((drwav_uint16)
data[1] << 8);
}
DRWAV_API drwav_int16 drwav_bytes_to_s16(const drwav_uint8* data)
{
return (
short
)drwav_bytes_to_u16(data);
return (
drwav_int16
)drwav_bytes_to_u16(data);
}
DRWAV_API drwav_uint32 drwav_bytes_to_u32(const drwav_uint8* data)
{
return (
data[0] << 0) | (data[1] << 8) | (data[2] << 16) | (
data[3] << 24);
return (
(drwav_uint32)data[0] << 0) | ((drwav_uint32)data[1] << 8) | ((drwav_uint32)data[2] << 16) | ((drwav_uint32)
data[3] << 24);
}
DRWAV_API drwav_int32 drwav_bytes_to_s32(const drwav_uint8* data)
{
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