diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-08 13:48:01 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-08 13:48:01 +0200 |
commit | 6b7a670d60fec808e4fd1fcf3a8df2c503dcbdf4 (patch) | |
tree | aeb947a0001088ae2caddca85062845a276ceffb /src/crepe/api/AudioSource.h | |
parent | c6cbde11c080c994577a7ebe4b966c25870dec1f (diff) | |
parent | 515aab5ab7e3281d2d77177724aae42cffc6faae (diff) |
Merge branch 'loek/cleanup' of github.com:lonkaars/crepe
Diffstat (limited to 'src/crepe/api/AudioSource.h')
-rw-r--r-- | src/crepe/api/AudioSource.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/crepe/api/AudioSource.h b/src/crepe/api/AudioSource.h index 6a038be..2d26cda 100644 --- a/src/crepe/api/AudioSource.h +++ b/src/crepe/api/AudioSource.h @@ -2,8 +2,8 @@ #include <memory> +#include "Asset.h" #include "Component.h" -#include "Resource.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 @@ -35,8 +35,7 @@ public: float volume; private: - std::unique_ptr<crepe::Sound> _sound; + std::unique_ptr<crepe::Sound> sound; }; -} - +} // namespace crepe::api |