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
6734a527
Commit
6734a527
authored
Jun 24, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update readme.
parent
39252d7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
13 deletions
+23
-13
README.md
README.md
+23
-13
No files found.
README.md
View file @
6734a527
...
@@ -57,12 +57,12 @@ Features
...
@@ -57,12 +57,12 @@ Features
-
White
-
White
-
Pink
-
Pink
-
Brownian
-
Brownian
-
Decoding
(requires external single-file libraries).
-
Decoding
-
WAV
via dr_wav
-
WAV
-
FLAC
via dr_flac
-
FLAC
-
MP3
via dr_mp3
-
MP3
-
Vorbis via stb_vorbis
-
Vorbis via stb_vorbis
(not built in - must be included separately).
-
Encoding
(requires external single-file libraries).
-
Encoding
-
WAV via dr_wav
-
WAV via dr_wav
-
Lock free ring buffer (single producer, single consumer).
-
Lock free ring buffer (single producer, single consumer).
...
@@ -113,13 +113,6 @@ Examples
...
@@ -113,13 +113,6 @@ Examples
This example shows how to decode and play a sound.
This example shows how to decode and play a sound.
```
c
```
c
#define DR_FLAC_IMPLEMENTATION
#include "../extras/dr_flac.h"
/* Enables FLAC decoding. */
#define DR_MP3_IMPLEMENTATION
#include "../extras/dr_mp3.h"
/* Enables MP3 decoding. */
#define DR_WAV_IMPLEMENTATION
#include "../extras/dr_wav.h"
/* Enables WAV decoding. */
#define MINIAUDIO_IMPLEMENTATION
#define MINIAUDIO_IMPLEMENTATION
#include "../miniaudio.h"
#include "../miniaudio.h"
...
@@ -193,6 +186,23 @@ Documentation can be found at the top of [miniaudio.h](https://raw.githubusercon
...
@@ -193,6 +186,23 @@ Documentation can be found at the top of [miniaudio.h](https://raw.githubusercon
which is always the most up-to-date and authoritive source of information on how to use miniaudio.
which is always the most up-to-date and authoritive source of information on how to use miniaudio.
Vorbis Decoding
===============
Vorbis decoding is enabled via stb_vorbis. To use it, you need to include the header section of stb_vorbis
before the implementation of miniaudio. You can enable Vorbis by doing the following:
```
c
#define STB_VORBIS_HEADER_ONLY
#include "extras/stb_vorbis.c"
/* Enables Vorbis decoding. */
#define MINIAUDIO_IMPLEMENTATION
#include "miniaudio.h"
/* stb_vorbis implementation must come after the implementation of miniaudio. */
#undef STB_VORBIS_HEADER_ONLY
#include "extras/stb_vorbis.c"
```
Unofficial Bindings
Unofficial Bindings
===================
===================
...
...
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