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
59726df2
Commit
59726df2
authored
May 21, 2018
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MAL_IMPLEMENTATION to MINI_AL_IMPLEMENTATION
parent
5c8c9b78
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
16 additions
and
14 deletions
+16
-14
README.md
README.md
+2
-2
examples/advanced_config.c
examples/advanced_config.c
+1
-1
examples/simple_capture.c
examples/simple_capture.c
+1
-1
examples/simple_enumeration.c
examples/simple_enumeration.c
+1
-1
examples/simple_playback.c
examples/simple_playback.c
+1
-1
examples/simple_playback_emscripten.c
examples/simple_playback_emscripten.c
+1
-1
mini_al.h
mini_al.h
+5
-3
tests/mal_dithering.c
tests/mal_dithering.c
+1
-1
tests/mal_profiling.c
tests/mal_profiling.c
+1
-1
tests/mal_test_0.c
tests/mal_test_0.c
+1
-1
tools/mini_sigvis/mini_sigvis.h
tools/mini_sigvis/mini_sigvis.h
+1
-1
No files found.
README.md
View file @
59726df2
...
@@ -63,7 +63,7 @@ Simple Playback Example
...
@@ -63,7 +63,7 @@ Simple Playback Example
#define DR_WAV_IMPLEMENTATION
#define DR_WAV_IMPLEMENTATION
#include "../extras/dr_wav.h" // Enables WAV decoding.
#include "../extras/dr_wav.h" // Enables WAV decoding.
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
#include <stdio.h>
#include <stdio.h>
...
@@ -146,7 +146,7 @@ relevant backend library before the implementation of mini_al, like so:
...
@@ -146,7 +146,7 @@ relevant backend library before the implementation of mini_al, like so:
#include "dr_mp3.h" // Enables MP3 decoding.
#include "dr_mp3.h" // Enables MP3 decoding.
#include "dr_wav.h" // Enables WAV decoding.
#include "dr_wav.h" // Enables WAV decoding.
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "mini_al.h"
#include "mini_al.h"
```
```
...
...
examples/advanced_config.c
View file @
59726df2
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
#include <stdio.h>
#include <stdio.h>
...
...
examples/simple_capture.c
View file @
59726df2
// This example simply captures data from your default microphone until you press Enter, after
// This example simply captures data from your default microphone until you press Enter, after
// which it plays back the captured audio.
// which it plays back the captured audio.
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
#include <stdlib.h>
#include <stdlib.h>
...
...
examples/simple_enumeration.c
View file @
59726df2
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
#include <stdio.h>
#include <stdio.h>
...
...
examples/simple_playback.c
View file @
59726df2
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#define DR_WAV_IMPLEMENTATION
#define DR_WAV_IMPLEMENTATION
#include "../extras/dr_wav.h" // Enables WAV decoding.
#include "../extras/dr_wav.h" // Enables WAV decoding.
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
#include <stdio.h>
#include <stdio.h>
...
...
examples/simple_playback_emscripten.c
View file @
59726df2
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
#include <stdio.h>
#include <stdio.h>
...
...
mini_al.h
View file @
59726df2
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
// USAGE
// USAGE
// =====
// =====
// mini_al is a single-file library. To use it, do something like the following in one .c file.
// mini_al is a single-file library. To use it, do something like the following in one .c file.
// #define MAL_IMPLEMENTATION
// #define M
INI_
AL_IMPLEMENTATION
// #include "mini_al.h"
// #include "mini_al.h"
//
//
// You can then #include this file in other parts of the program as you would with any other header file.
// You can then #include this file in other parts of the program as you would with any other header file.
...
@@ -2390,7 +2390,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSignWave, mal_uint64 count, float*
...
@@ -2390,7 +2390,7 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSignWave, mal_uint64 count, float*
//
//
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
#if
def MAL_IMPLEMENTATION
#if
defined(MINI_AL_IMPLEMENTATION) || defined(MAL_IMPLEMENTATION)
#include <assert.h>
#include <assert.h>
#include <limits.h> // For INT_MAX
#include <limits.h> // For INT_MAX
#include <math.h> // sin(), etc.
#include <math.h> // sin(), etc.
...
@@ -22378,13 +22378,15 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSineWave, mal_uint64 count, float*
...
@@ -22378,13 +22378,15 @@ mal_uint64 mal_sine_wave_read(mal_sine_wave* pSineWave, mal_uint64 count, float*
}
}
#endif // MAL_IMPLEMENTATION
#endif // M
INI_
AL_IMPLEMENTATION
// REVISION HISTORY
// REVISION HISTORY
// ================
// ================
//
//
// v0.x - 2018-xx-xx
// v0.x - 2018-xx-xx
// - Changed MAL_IMPLEMENTATION to MINI_AL_IMPLEMENTATION for consistency with other libraries. The old
// way is still supported for now, but you should update as it may be removed in the future.
// - API CHANGE: Replace device enumeration APIs. mal_enumerate_devices() has been replaced with
// - API CHANGE: Replace device enumeration APIs. mal_enumerate_devices() has been replaced with
// mal_context_get_devices(). An additional low-level device enumration API has been introduced called
// mal_context_get_devices(). An additional low-level device enumration API has been introduced called
// mal_context_enumerate_devices() which uses a callback to report devices.
// mal_context_enumerate_devices() which uses a callback to report devices.
...
...
tests/mal_dithering.c
View file @
59726df2
#define MAL_USE_REFERENCE_CONVERSION_APIS
#define MAL_USE_REFERENCE_CONVERSION_APIS
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
// Two converters are needed here. One for converting f32 samples from the sine wave generator to the input format,
// Two converters are needed here. One for converting f32 samples from the sine wave generator to the input format,
...
...
tests/mal_profiling.c
View file @
59726df2
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
float
g_ChannelRouterProfilingOutputBenchmark
[
8
][
48000
];
float
g_ChannelRouterProfilingOutputBenchmark
[
8
][
48000
];
...
...
tests/mal_test_0.c
View file @
59726df2
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#include "../extras/stb_vorbis.c"
#include "../extras/stb_vorbis.c"
#endif
#endif
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../mini_al.h"
#include "../mini_al.h"
#ifdef __EMSCRIPTEN__
#ifdef __EMSCRIPTEN__
...
...
tools/mini_sigvis/mini_sigvis.h
View file @
59726df2
...
@@ -82,7 +82,7 @@ float msigvis_channel_get_sample_f32(msigvis_channel* pChannel, mal_uint32 iSamp
...
@@ -82,7 +82,7 @@ float msigvis_channel_get_sample_f32(msigvis_channel* pChannel, mal_uint32 iSamp
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifdef MINI_SIGVIS_IMPLEMENTATION
#ifdef MINI_SIGVIS_IMPLEMENTATION
#define MAL_IMPLEMENTATION
#define M
INI_
AL_IMPLEMENTATION
#include "../../mini_al.h"
#include "../../mini_al.h"
#include "../external/dred/source/dred/dtk/dtk.c"
#include "../external/dred/source/dred/dtk/dtk.c"
...
...
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