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
0694af40
Commit
0694af40
authored
Dec 16, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update external libs.
parent
d8c9057b
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
248 additions
and
142 deletions
+248
-142
extras/dr_flac.h
extras/dr_flac.h
+7
-7
extras/dr_mp3.h
extras/dr_mp3.h
+2
-2
extras/dr_wav.h
extras/dr_wav.h
+239
-133
No files found.
extras/dr_flac.h
View file @
0694af40
// FLAC audio decoder. Public domain. See "unlicense" statement at the end of this file.
// FLAC audio decoder. Public domain. See "unlicense" statement at the end of this file.
// dr_flac - v0.11.0 - 2018-12-
xx
// dr_flac - v0.11.0 - 2018-12-
16
//
//
// David Reid - mackron@gmail.com
// David Reid - mackron@gmail.com
...
@@ -17,8 +17,8 @@
...
@@ -17,8 +17,8 @@
// // Failed to open FLAC file
// // Failed to open FLAC file
// }
// }
//
//
// drflac_int32* pSamples = malloc(pFlac->total
SampleCount
* sizeof(drflac_int32));
// drflac_int32* pSamples = malloc(pFlac->total
PCMFrameCount * pFlac->channels
* sizeof(drflac_int32));
// drflac_uint64 numberOfInterleavedSamplesActuallyRead = drflac_read_pcm_frames_s32(pFlac, pFlac->total
Sampl
eCount, pSamples);
// drflac_uint64 numberOfInterleavedSamplesActuallyRead = drflac_read_pcm_frames_s32(pFlac, pFlac->total
PCMFram
eCount, pSamples);
//
//
// The drflac object represents the decoder. It is a transparent type so all the information you need, such as the number of
// The drflac object represents the decoder. It is a transparent type so all the information you need, such as the number of
// channels and the bits per sample, should be directly accessible - just make sure you don't change their values. Samples are
// channels and the bits per sample, should be directly accessible - just make sure you don't change their values. Samples are
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
// the decoder will give you as many samples as it can, up to the amount requested. Later on when you need the next batch of
// the decoder will give you as many samples as it can, up to the amount requested. Later on when you need the next batch of
// samples, just call it again. Example:
// samples, just call it again. Example:
//
//
// while (drflac_read_pcm_frames_s32(pFlac, chunkSize, pChunkSamples) > 0) {
// while (drflac_read_pcm_frames_s32(pFlac, chunkSize
InPCMFrames
, pChunkSamples) > 0) {
// do_something();
// do_something();
// }
// }
//
//
...
@@ -43,8 +43,8 @@
...
@@ -43,8 +43,8 @@
//
//
// unsigned int channels;
// unsigned int channels;
// unsigned int sampleRate;
// unsigned int sampleRate;
// drflac_uint64 total
Sampl
eCount;
// drflac_uint64 total
PCMFram
eCount;
// drflac_int32* pSampleData = drflac_open_
and_decode_file_s32("MySong.flac", &channels, &sampleRate, &totalSampl
eCount);
// drflac_int32* pSampleData = drflac_open_
file_and_read_pcm_frames_s32("MySong.flac", &channels, &sampleRate, &totalPCMFram
eCount);
// if (pSampleData == NULL) {
// if (pSampleData == NULL) {
// // Failed to open and decode FLAC file.
// // Failed to open and decode FLAC file.
// }
// }
...
@@ -7958,7 +7958,7 @@ drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterator* pIter,
...
@@ -7958,7 +7958,7 @@ drflac_bool32 drflac_next_cuesheet_track(drflac_cuesheet_track_iterator* pIter,
// REVISION HISTORY
// REVISION HISTORY
//
//
// v0.11.0 - 2018-12-
xx
// v0.11.0 - 2018-12-
16
// - API CHANGE: Deprecated drflac_read_s32(), drflac_read_s16() and drflac_read_f32() and replaced them with
// - API CHANGE: Deprecated drflac_read_s32(), drflac_read_s16() and drflac_read_f32() and replaced them with
// drflac_read_pcm_frames_s32(), drflac_read_pcm_frames_s16() and drflac_read_pcm_frames_f32(). The new APIs take
// drflac_read_pcm_frames_s32(), drflac_read_pcm_frames_s16() and drflac_read_pcm_frames_f32(). The new APIs take
// and return PCM frame counts instead of sample counts. To upgrade you will need to change the input count by
// and return PCM frame counts instead of sample counts. To upgrade you will need to change the input count by
...
...
extras/dr_mp3.h
View file @
0694af40
// 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.4.0 - 2018-
xx-xx
// dr_mp3 - v0.4.0 - 2018-
12-16
//
//
// David Reid - mackron@gmail.com
// David Reid - mackron@gmail.com
//
//
...
@@ -3450,7 +3450,7 @@ void drmp3_free(void* p)
...
@@ -3450,7 +3450,7 @@ void drmp3_free(void* p)
// REVISION HISTORY
// REVISION HISTORY
// ================
// ================
//
//
// v0.4.0 - 2018-
xx-xx
// v0.4.0 - 2018-
12-16
// - API CHANGE: Rename some APIs:
// - API CHANGE: Rename some APIs:
// - drmp3_read_f32 -> to drmp3_read_pcm_frames_f32
// - drmp3_read_f32 -> to drmp3_read_pcm_frames_f32
// - drmp3_seek_to_frame -> drmp3_seek_to_pcm_frame
// - drmp3_seek_to_frame -> drmp3_seek_to_pcm_frame
...
...
extras/dr_wav.h
View file @
0694af40
This diff is collapsed.
Click to expand it.
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