diff options
Diffstat (limited to 'src/example/audio_internal.cpp')
-rw-r--r-- | src/example/audio_internal.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/example/audio_internal.cpp b/src/example/audio_internal.cpp index 1647f20..f3bf349 100644 --- a/src/example/audio_internal.cpp +++ b/src/example/audio_internal.cpp @@ -4,7 +4,9 @@ */ #include <crepe/api/Config.h> +#include <crepe/facade/SoundContext.h> #include <crepe/facade/Sound.h> +#include <crepe/Asset.h> #include <crepe/util/Log.h> #include <thread> @@ -24,6 +26,8 @@ int _ = []() { }(); int main() { + SoundContext ctx{}; + Sound sound{ctx}; // Load a background track (Ogg Vorbis) auto bgm = Sound("mwe/audio/bgm.ogg"); // Load three short samples (WAV) |