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
6f748942
Commit
6f748942
authored
Jun 24, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update examples and tests.
parent
05526fb0
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
0 additions
and
62 deletions
+0
-62
examples/simple_capture.c
examples/simple_capture.c
+0
-4
examples/simple_duplex.c
examples/simple_duplex.c
+0
-3
examples/simple_loopback.c
examples/simple_loopback.c
+0
-4
examples/simple_looping.c
examples/simple_looping.c
+0
-7
examples/simple_mixing.c
examples/simple_mixing.c
+0
-8
examples/simple_playback.c
examples/simple_playback.c
+0
-7
research/ma_engine.c
research/ma_engine.c
+0
-8
research/ma_mixing.c
research/ma_mixing.c
+0
-8
tests/test_common/ma_test_common.c
tests/test_common/ma_test_common.c
+0
-7
tools/audioconverter/audioconverter.c
tools/audioconverter/audioconverter.c
+0
-6
No files found.
examples/simple_capture.c
View file @
6f748942
/* This example simply captures data from your default microphone until you press Enter. The output is saved to the file specified on the command line. */
#define DR_WAV_IMPLEMENTATION
#include "../extras/dr_wav.h"
#define MINIAUDIO_IMPLEMENTATION
#include "../miniaudio.h"
...
...
examples/simple_duplex.c
View file @
6f748942
#define MINIAUDIO_IMPLEMENTATION
#include "../miniaudio.h"
#define DR_WAV_IMPLEMENTATION
#include "../extras/dr_wav.h"
#include <stdio.h>
#ifdef __EMSCRIPTEN__
...
...
examples/simple_loopback.c
View file @
6f748942
...
...
@@ -5,10 +5,6 @@ specified on the command line.
To use loopback mode you just need to set the device type to ma_device_type_loopback and set the capture device config
properties. The output buffer in the callback will be null whereas the input buffer will be valid.
*/
#define DR_WAV_IMPLEMENTATION
#include "../extras/dr_wav.h"
#define MINIAUDIO_IMPLEMENTATION
#include "../miniaudio.h"
...
...
examples/simple_looping.c
View file @
6f748942
#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
#include "../miniaudio.h"
...
...
examples/simple_mixing.c
View file @
6f748942
...
...
@@ -2,14 +2,6 @@
Usage: simple_mixing [input file 0] [input file 1] ... [input file n]
Example: simple_mixing file1.wav file2.flac
*/
#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
#include "../miniaudio.h"
...
...
examples/simple_playback.c
View file @
6f748942
#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
#include "../miniaudio.h"
...
...
research/ma_engine.c
View file @
6f748942
#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 STB_VORBIS_HEADER_ONLY
#include "../extras/stb_vorbis.c"
/* Enables Vorbis decoding. */
...
...
research/ma_mixing.c
View file @
6f748942
#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 MA_DEBUG_OUTPUT
#define MA_IMPLEMENTATION
#include "../miniaudio.h"
...
...
tests/test_common/ma_test_common.c
View file @
6f748942
#define DR_FLAC_IMPLEMENTATION
#include "../../extras/dr_flac.h"
#define DR_MP3_IMPLEMENTATION
#include "../../extras/dr_mp3.h"
#define DR_WAV_IMPLEMENTATION
#include "../../extras/dr_wav.h"
/* Make sure we include the Speex resampler so we can test it. */
#define MINIAUDIO_SPEEX_RESAMPLER_IMPLEMENTATION
#include "../../extras/speex_resampler/ma_speex_resampler.h"
...
...
tools/audioconverter/audioconverter.c
View file @
6f748942
...
...
@@ -14,12 +14,6 @@ find a copy of this text in extras/speex_resampler/README.md in the miniaudio re
*/
#define _CRT_SECURE_NO_WARNINGS
/* For stb_vorbis' usage of fopen() instead of fopen_s(). */
#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 STB_VORBIS_HEADER_ONLY
#include "../../extras/stb_vorbis.c"
/* Enables Vorbis decoding. */
...
...
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