File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
This example show how a custom backend can be implemented.
3
3
4
4
This implements a full-featured SDL2 backend. It's intentionally built using the same paradigms as the built-in backends in order to make
5
- it suitable as a solid basis for a custom implementation. The SDL2 backend can be disabled with MA_NO_SDL, exactly like the build -in
5
+ it suitable as a solid basis for a custom implementation. The SDL2 backend can be disabled with MA_NO_SDL, exactly like the built -in
6
6
backends. It supports both runtime and compile-time linking and respects the MA_NO_RUNTIME_LINKING option. It also works on Emscripten
7
7
which requires the `-s USE_SDL=2` option.
8
8
@@ -23,8 +23,7 @@ Custom backends are identified with the `ma_backend_custom` backend type. For th
23
23
`ma_backend_custom` backend type because otherwise the built-in backends would always get chosen first and none of the code for the custom
24
24
backends would actually get hit. By default, the `ma_backend_custom` backend is the lowest priority backend, except for `ma_backend_null`.
25
25
*/
26
- #define MINIAUDIO_IMPLEMENTATION
27
- #include "../miniaudio.h"
26
+ #include "../miniaudio.c"
28
27
29
28
#ifdef __EMSCRIPTEN__
30
29
#include <emscripten.h>
You can’t perform that action at this time.
0 commit comments