Remove old files and update examples.

This commit is contained in:
David Reid
2021-12-10 21:13:34 +10:00
parent ed22ebbfe8
commit 9598247096
32 changed files with 12 additions and 1873 deletions
+3 -3
View File
@@ -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>
+2 -3
View File
@@ -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>
+1 -2
View File
@@ -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
+1 -2
View File
@@ -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>
+1 -2
View File
@@ -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;