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
0b70a990
Commit
0b70a990
authored
Jul 23, 2025
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor update to documentation.
parent
55616090
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
README.md
README.md
+2
-2
miniaudio.h
miniaudio.h
+11
-14
No files found.
README.md
View file @
0b70a990
...
@@ -50,7 +50,7 @@ Examples
...
@@ -50,7 +50,7 @@ Examples
This example shows one way to play a sound using the high level API.
This example shows one way to play a sound using the high level API.
```
c
```
c
#include "miniaudio.h"
#include "miniaudio
/miniaudio
.h"
#include <stdio.h>
#include <stdio.h>
...
@@ -78,7 +78,7 @@ int main()
...
@@ -78,7 +78,7 @@ int main()
This example shows how to decode and play a sound using the low level API.
This example shows how to decode and play a sound using the low level API.
```
c
```
c
#include "miniaudio.h"
#include "miniaudio
/miniaudio
.h"
#include <stdio.h>
#include <stdio.h>
...
...
miniaudio.h
View file @
0b70a990
/*
/*
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
Audio playback and capture library. Choice of public domain or MIT-0. See license statements at the end of this file.
miniaudio - v0.11.2
2 - 2025-02-24
miniaudio - v0.11.2
3 - TBD
David Reid - mackron@gmail.com
David Reid - mackron@gmail.com
...
@@ -12,18 +12,10 @@ GitHub: https://github.com/mackron/miniaudio
...
@@ -12,18 +12,10 @@ GitHub: https://github.com/mackron/miniaudio
/*
/*
1. Introduction
1. Introduction
===============
===============
To use miniaudio, include "miniaudio.h":
To use miniaudio, just include "miniaudio.h" like any other header and add "miniaudio.c" to your
source tree. If you don't want to add it to your source tree you can compile and link to it like
```c
any other library. Note that ABI compatiblity is not guaranteed between versions, even with bug
#include "miniaudio.h"
fix releases, so take care if compiling as a shared object.
```
The implementation is contained in "miniaudio.c". Just compile this like any other source file. You
can include miniaudio.c if you want to compile your project as a single translation unit:
```c
#include "miniaudio.c"
```
miniaudio includes both low level and high level APIs. The low level API is good for those who want
miniaudio includes both low level and high level APIs. The low level API is good for those who want
to do all of their mixing themselves and only require a light weight interface to the underlying
to do all of their mixing themselves and only require a light weight interface to the underlying
...
@@ -463,6 +455,11 @@ is at the end, use `ma_sound_at_end()`. Looping of a sound can be controlled wit
...
@@ -463,6 +455,11 @@ is at the end, use `ma_sound_at_end()`. Looping of a sound can be controlled wit
miniaudio should work cleanly out of the box without the need to download or install any
miniaudio should work cleanly out of the box without the need to download or install any
dependencies. See below for platform-specific details.
dependencies. See below for platform-specific details.
This library has been designed to be added directly to your source tree which is the preferred way
of using it, but you can compile it as a normal library if that's your preference. Be careful if
compiling as a shared object because miniaudio is not ABI compatible between any release, including
bug fix releases. It's recommended you link statically.
Note that GCC and Clang require `-msse2`, `-mavx2`, etc. for SIMD optimizations.
Note that GCC and Clang require `-msse2`, `-mavx2`, etc. for SIMD optimizations.
If you get errors about undefined references to `__sync_val_compare_and_swap_8`, `__atomic_load_8`,
If you get errors about undefined references to `__sync_val_compare_and_swap_8`, `__atomic_load_8`,
...
@@ -3750,7 +3747,7 @@ extern "C" {
...
@@ -3750,7 +3747,7 @@ extern "C" {
#define MA_VERSION_MAJOR 0
#define MA_VERSION_MAJOR 0
#define MA_VERSION_MINOR 11
#define MA_VERSION_MINOR 11
#define MA_VERSION_REVISION 2
2
#define MA_VERSION_REVISION 2
3
#define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION)
#define MA_VERSION_STRING MA_XSTRINGIFY(MA_VERSION_MAJOR) "." MA_XSTRINGIFY(MA_VERSION_MINOR) "." MA_XSTRINGIFY(MA_VERSION_REVISION)
#if defined(_MSC_VER) && !defined(__clang__)
#if defined(_MSC_VER) && !defined(__clang__)
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