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
c47c416d
Commit
c47c416d
authored
Feb 25, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme with info on the decoding API.
parent
5d3fe6d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
README.md
README.md
+26
-7
No files found.
README.md
View file @
c47c416d
...
@@ -26,6 +26,8 @@ Features
...
@@ -26,6 +26,8 @@ Features
-
Sample rate conversion is currently low quality, but a higher quality implementation is planned.
-
Sample rate conversion is currently low quality, but a higher quality implementation is planned.
-
Channel mapping/layout.
-
Channel mapping/layout.
-
Channel mixing (converting mono to 5.1, etc.)
-
Channel mixing (converting mono to 5.1, etc.)
-
MP3, Vorbis, FLAC and WAV decoding
-
This depends on external single file libraries which can be found in the "extras" folder.
Supported Platforms
Supported Platforms
...
@@ -126,13 +128,30 @@ int main(int argc, char** argv)
...
@@ -126,13 +128,30 @@ int main(int argc, char** argv)
}
}
```
```
mini_al does not directly support loading of audio files like WAV, FLAC, MP3, etc. You may want to
consider the following single file libraries for this:
MP3/Vorbis/FLAC/WAV Decoding
-
[
dr_flac
](
https://github.com/mackron/dr_libs/blob/master/dr_flac.h
)
============================
-
[
dr_wav
](
https://github.com/mackron/dr_libs/blob/master/dr_wav.h
)
mini_al includes a decoding API which supports the following backends:
-
[
stb_vorbis
](
https://github.com/nothings/stb/blob/master/stb_vorbis.c
)
-
FLAC via
[
dr_flac
](
https://github.com/mackron/dr_libs/blob/master/dr_flac.h
)
-
MP3 via
[
dr_mp3
](
https://github.com/mackron/dr_libs/blob/master/dr_mp3.h
)
-
WAV via
[
dr_wav
](
https://github.com/mackron/dr_libs/blob/master/dr_wav.h
)
-
Vorbis via
[
stb_vorbis
](
https://github.com/nothings/stb/blob/master/stb_vorbis.c
)
Copies of these libraries can be found in the "extras" folder. You may also want to look at the
libraries below, but they are not supported by the mini_al decoder API. If you know of any other
single file libraries I can add to this list, let me know. Preferably public domain or MIT.
-
[
minimp3
](
https://github.com/lieff/minimp3
)
-
[
jar_mod
](
https://github.com/kd7tck/jar/blob/master/jar_mod.h
)
-
[
jar_mod
](
https://github.com/kd7tck/jar/blob/master/jar_mod.h
)
-
[
jar_xm
](
https://github.com/kd7tck/jar/blob/master/jar_xm.h
)
-
[
jar_xm
](
https://github.com/kd7tck/jar/blob/master/jar_xm.h
)
Copies of these libraries can be found in the "extras" folder. If you know of any other single file
To enable support for a decoder backend, all you need to do is #include the header section of the
libraries I can add to this list, let me know. Preferably public domain or MIT.
relevant backend library before the implementation of mini_al, like so:
```
#include "dr_flac.h" // Enables FLAC decoding.
#include "dr_mp3.h" // Enables MP3 decoding.
#include "dr_wav.h" // Enables WAV decoding.
#define MAL_IMPLEMENTATION
#include "mini_al.h"
```
\ No newline at end of file
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