Skip to content

Commit c135046

Browse files
committed
Minor update to custom_backend example.
1 parent f9caab2 commit c135046

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/custom_backend.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This example show how a custom backend can be implemented.
33
44
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
66
backends. It supports both runtime and compile-time linking and respects the MA_NO_RUNTIME_LINKING option. It also works on Emscripten
77
which requires the `-s USE_SDL=2` option.
88
@@ -23,8 +23,7 @@ Custom backends are identified with the `ma_backend_custom` backend type. For th
2323
`ma_backend_custom` backend type because otherwise the built-in backends would always get chosen first and none of the code for the custom
2424
backends would actually get hit. By default, the `ma_backend_custom` backend is the lowest priority backend, except for `ma_backend_null`.
2525
*/
26-
#define MINIAUDIO_IMPLEMENTATION
27-
#include "../miniaudio.h"
26+
#include "../miniaudio.c"
2827

2928
#ifdef __EMSCRIPTEN__
3029
#include <emscripten.h>

0 commit comments

Comments
 (0)