diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-05 14:20:45 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-05 14:20:45 +0200 |
commit | 202a9ec288ded78771e1f7e4c711a7612b201b9d (patch) | |
tree | ffb476db3ac57f9edafe3feee315bdf05088cbf2 /src/crepe/api/AudioSource.h | |
parent | f4bb6d57cc88a7e25b3a5f43faafa49a7f500b7c (diff) |
rename Resource to Asset
Diffstat (limited to 'src/crepe/api/AudioSource.h')
-rw-r--r-- | src/crepe/api/AudioSource.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/AudioSource.h b/src/crepe/api/AudioSource.h index 4300c48..9dfaf46 100644 --- a/src/crepe/api/AudioSource.h +++ b/src/crepe/api/AudioSource.h @@ -3,7 +3,7 @@ #include <memory> #include "Component.h" -#include "Resource.h" +#include "Asset.h" namespace crepe { class Sound; @@ -14,7 +14,7 @@ namespace crepe::api { //! Audio source component class AudioSource : Component { public: - AudioSource(std::unique_ptr<Resource> audio_clip); + AudioSource(std::unique_ptr<Asset> audio_clip); virtual ~AudioSource() = default; public: @@ -26,7 +26,7 @@ public: public: //! Sample file location - std::unique_ptr<Resource> audio_clip; + std::unique_ptr<Asset> audio_clip; //! TODO: ????? bool play_on_awake; //! Repeat the current audio clip during playback |