aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/AudioSource.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/api/AudioSource.h')
-rw-r--r--src/crepe/api/AudioSource.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/crepe/api/AudioSource.h b/src/crepe/api/AudioSource.h
index 5bc70f9..0748267 100644
--- a/src/crepe/api/AudioSource.h
+++ b/src/crepe/api/AudioSource.h
@@ -21,8 +21,6 @@ public:
void stop();
public:
- //! Sample file location
- const std::unique_ptr<Asset> audio_clip;
//! Play when this component becomes active
bool play_on_awake = false;
//! Repeat the current audio clip during playback
@@ -31,6 +29,9 @@ public:
float volume = 1.0;
private:
+ //! This audio source's clip
+ const Asset source;
+
//! If this source is playing audio
bool playing = false;
//! Rewind the sample location