Skip to content

Commit

Permalink
Remove old files and update examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
mackron committed Dec 10, 2021
1 parent ed22ebb commit 9598247
Show file tree
Hide file tree
Showing 32 changed files with 12 additions and 1,873 deletions.
6 changes: 3 additions & 3 deletions examples/custom_decoder_engine.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ example (via libopus).
#define MA_NO_VORBIS /* Disable the built-in Vorbis decoder to ensure the libvorbis decoder is picked. */
#define MA_NO_OPUS /* Disable the (not yet implemented) built-in Opus decoder to ensure the libopus decoder is picked. */
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"
#include "../../extras/miniaudio_libvorbis.h"
#include "../../extras/miniaudio_libopus.h"
#include "../miniaudio.h"
#include "../extras/miniaudio_libvorbis.h"
#include "../extras/miniaudio_libopus.h"

#include <stdio.h>

Expand Down
5 changes: 2 additions & 3 deletions examples/duplex_effect.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ the miniaudio repository. The vocoder node uses https://github.com/blastbay/vocl
effect.
*/
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"
#include "../miniaudio_engine.h"
#include "../_extras/nodes/ma_vocoder_node/ma_vocoder_node.c"
#include "../miniaudio.h"
#include "../extras/nodes/ma_vocoder_node/ma_vocoder_node.c"

#include <stdio.h>

Expand Down
3 changes: 1 addition & 2 deletions examples/engine_advanced.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ If you were wanting to support multiple listeners, this example will show you ho
initializing one `ma_engine` object for each listener, each of which share a single self-managed resource manager.
*/
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"
#include "../miniaudio_engine.h"
#include "../miniaudio.h"

#define MAX_DEVICES 2
#define MAX_SOUNDS 32
Expand Down
3 changes: 1 addition & 2 deletions examples/resource_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ set, each sound will have their own formats and you'll need to do the necessary
*/
#define MA_NO_ENGINE /* We're intentionally not using the ma_engine API here. */
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"
#include "../miniaudio_engine.h"
#include "../miniaudio.h"

#ifdef __EMSCRIPTEN__
#include <emscripten.h>
Expand Down
3 changes: 1 addition & 2 deletions examples/resource_manager_advanced.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ threads to manage internally and how to implement your own custom job thread.
*/
#define MA_NO_ENGINE /* We're intentionally not using the ma_engine API here. */
#define MINIAUDIO_IMPLEMENTATION
#include "../../miniaudio.h"
#include "../miniaudio_engine.h"
#include "../miniaudio.h"

static ma_resource_manager_data_source g_dataSources[16];
static ma_uint32 g_dataSourceCount;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#define MINIAUDIO_IMPLEMENTATION
#include "../../../../miniaudio.h"
#include "../../../miniaudio_engine.h"
#include "../../../miniaudio.h"
#include "ma_channel_separator_node.c"
#include "../ma_channel_combiner_node/ma_channel_combiner_node.c"

Expand Down
3 changes: 1 addition & 2 deletions extras/nodes/ma_delay_node/ma_delay_node_example.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@

#define MINIAUDIO_IMPLEMENTATION
#include "../../../../miniaudio.h"
#include "../../../miniaudio_engine.h"
#include "../../../miniaudio.h"

#include <stdio.h>

Expand Down
3 changes: 1 addition & 2 deletions extras/nodes/ma_reverb_node/ma_reverb_node_example.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#define MINIAUDIO_IMPLEMENTATION
#include "../../../../miniaudio.h"
#include "../../../miniaudio_engine.h"
#include "../../../miniaudio.h"
#include "ma_reverb_node.c"

#include <stdio.h>
Expand Down
3 changes: 1 addition & 2 deletions extras/nodes/ma_vocoder_node/ma_vocoder_node_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ the miniaudio repository. The vocoder node uses https://github.com/blastbay/vocl
effect.
*/
#define MINIAUDIO_IMPLEMENTATION
#include "../../../../miniaudio.h"
#include "../../../miniaudio_engine.h"
#include "../../../miniaudio.h"
#include "ma_vocoder_node.c"

#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion research/_examples/custom_decoder_engine.c

This file was deleted.

1 change: 0 additions & 1 deletion research/_examples/duplex_effect.c

This file was deleted.

1 change: 0 additions & 1 deletion research/_examples/engine_hello_world.c

This file was deleted.

1 change: 0 additions & 1 deletion research/_examples/resource_manager.c

This file was deleted.

1 change: 0 additions & 1 deletion research/_examples/resource_manager_advanced.c

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion research/_extras/nodes/ma_reverb_node/ma_reverb_node.c

This file was deleted.

1 change: 0 additions & 1 deletion research/_extras/nodes/ma_reverb_node/ma_reverb_node.h

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9598247

Please sign in to comment.