diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 11:26:12 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-14 11:26:12 +0100 |
commit | 01c09a196c3f3e5cefaa4119a95a1cdeb7b9c263 (patch) | |
tree | 5667369a85bd06b683c67de42bf0311c2647912b /src/test/AudioTest.cpp | |
parent | 6e13510f3c6d4155707f748d237bb1fa05243450 (diff) | |
parent | 8600b8a29351aae26ec7b22f84aeeef92d8cb421 (diff) |
merge `loek/cleanup` into `loek/audio`
Diffstat (limited to 'src/test/AudioTest.cpp')
-rw-r--r-- | src/test/AudioTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/AudioTest.cpp b/src/test/AudioTest.cpp index a9d5e6c..6e2706c 100644 --- a/src/test/AudioTest.cpp +++ b/src/test/AudioTest.cpp @@ -3,6 +3,7 @@ #include <crepe/ComponentManager.h> #include <crepe/api/AudioSource.h> +#include <crepe/api/GameObject.h> using namespace std; using namespace crepe; @@ -16,6 +17,7 @@ public: void SetUp() override { auto & mgr = this->component_manager; GameObject entity = mgr.new_object("name"); + entity.add_component<AudioSource>("../mwe/audio/sfx1.wav"); } }; |