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
c4a07602
Commit
c4a07602
authored
Dec 02, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dr_wav.
parent
9ce20dc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
extras/dr_wav.h
extras/dr_wav.h
+6
-3
miniaudio.h
miniaudio.h
+2
-2
No files found.
extras/dr_wav.h
View file @
c4a07602
/*
/*
WAV audio loader and writer. Choice of public domain or MIT-0. See license statements at the end of this file.
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.1
5 - 2020-11-21
dr_wav - v0.12.1
6 - 2020-12-02
David Reid - mackron@gmail.com
David Reid - mackron@gmail.com
...
@@ -144,7 +144,7 @@ extern "C" {
...
@@ -144,7 +144,7 @@ extern "C" {
#define DRWAV_VERSION_MAJOR 0
#define DRWAV_VERSION_MAJOR 0
#define DRWAV_VERSION_MINOR 12
#define DRWAV_VERSION_MINOR 12
#define DRWAV_VERSION_REVISION 1
5
#define DRWAV_VERSION_REVISION 1
6
#define DRWAV_VERSION_STRING DRWAV_XSTRINGIFY(DRWAV_VERSION_MAJOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_MINOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_REVISION)
#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. */
#include <stddef.h>
/* For size_t. */
...
@@ -3604,7 +3604,7 @@ DRWAV_API drwav_uint64 drwav_read_pcm_frames_le(drwav* pWav, drwav_uint64 frames
...
@@ -3604,7 +3604,7 @@ DRWAV_API drwav_uint64 drwav_read_pcm_frames_le(drwav* pWav, drwav_uint64 frames
/* Don't try to read more samples than can potentially fit in the output buffer. */
/* Don't try to read more samples than can potentially fit in the output buffer. */
bytesToRead
=
framesToRead
*
bytesPerFrame
;
bytesToRead
=
framesToRead
*
bytesPerFrame
;
if
(
bytesToRead
>
DRWAV_SIZE_MAX
)
{
if
(
bytesToRead
>
DRWAV_SIZE_MAX
)
{
framesToRead
=
DRWAV_SIZE_MAX
/
bytesPerFrame
;
bytesToRead
=
(
DRWAV_SIZE_MAX
/
bytesPerFrame
)
*
bytesPerFrame
;
/* Round the number of bytes to read to a clean frame boundary. */
}
}
/*
/*
...
@@ -6053,6 +6053,9 @@ two different ways to initialize a drwav object.
...
@@ -6053,6 +6053,9 @@ two different ways to initialize a drwav object.
/*
/*
REVISION HISTORY
REVISION HISTORY
================
================
v0.12.16 - 2020-12-02
- Fix a bug when trying to read more bytes than can fit in a size_t.
v0.12.15 - 2020-11-21
v0.12.15 - 2020-11-21
- Fix compilation with OpenWatcom.
- Fix compilation with OpenWatcom.
...
...
miniaudio.h
View file @
c4a07602
...
@@ -44466,7 +44466,7 @@ extern "C" {
...
@@ -44466,7 +44466,7 @@ extern "C" {
#define DRWAV_XSTRINGIFY(x) DRWAV_STRINGIFY(x)
#define DRWAV_XSTRINGIFY(x) DRWAV_STRINGIFY(x)
#define DRWAV_VERSION_MAJOR 0
#define DRWAV_VERSION_MAJOR 0
#define DRWAV_VERSION_MINOR 12
#define DRWAV_VERSION_MINOR 12
#define DRWAV_VERSION_REVISION 1
5
#define DRWAV_VERSION_REVISION 1
6
#define DRWAV_VERSION_STRING DRWAV_XSTRINGIFY(DRWAV_VERSION_MAJOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_MINOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_REVISION)
#define DRWAV_VERSION_STRING DRWAV_XSTRINGIFY(DRWAV_VERSION_MAJOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_MINOR) "." DRWAV_XSTRINGIFY(DRWAV_VERSION_REVISION)
#include <stddef.h>
#include <stddef.h>
typedef signed char drwav_int8;
typedef signed char drwav_int8;
...
@@ -51114,7 +51114,7 @@ DRWAV_API drwav_uint64 drwav_read_pcm_frames_le(drwav* pWav, drwav_uint64 frames
...
@@ -51114,7 +51114,7 @@ DRWAV_API drwav_uint64 drwav_read_pcm_frames_le(drwav* pWav, drwav_uint64 frames
}
}
bytesToRead = framesToRead * bytesPerFrame;
bytesToRead = framesToRead * bytesPerFrame;
if (bytesToRead > DRWAV_SIZE_MAX) {
if (bytesToRead > DRWAV_SIZE_MAX) {
framesToRead = DRWAV_SIZE_MAX /
bytesPerFrame;
bytesToRead = (DRWAV_SIZE_MAX / bytesPerFrame) *
bytesPerFrame;
}
}
if (bytesToRead == 0) {
if (bytesToRead == 0) {
return 0;
return 0;
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