diff --git a/core/audio/mixer/mixer_track.h b/core/audio/mixer/mixer_track.h index 795b751..c98d39e 100644 --- a/core/audio/mixer/mixer_track.h +++ b/core/audio/mixer/mixer_track.h @@ -43,9 +43,11 @@ public: [[nodiscard]] channel_interface* get_channel_interface() const { return channel_interface_; } + void set_volume(float in_volume) { volume = in_volume; } + [[nodiscard]] float get_volume() const { return volume; } + audio_buffer buffer; std::shared_ptr>> ui_buffers; - std::atomic volume = 1.0f; std::vector effects{}; std::vector children{}; multicast_delegate on_processed; @@ -53,6 +55,7 @@ public: multicast_delegate on_remove_effect; private: const mixer_track_type type_; + std::atomic volume = 1.0f; channel_interface* channel_interface_ = nullptr; };