将mixer_track的volume改为属性
This commit is contained in:
parent
b2db523872
commit
84e6bd7b58
@ -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<std::vector<circular_audio_buffer<float>>> ui_buffers;
|
||||
std::atomic<float> volume = 1.0f;
|
||||
std::vector<plugin_host*> effects{};
|
||||
std::vector<mixer_track_link> children{};
|
||||
multicast_delegate<mixer_track*> on_processed;
|
||||
@ -53,6 +55,7 @@ public:
|
||||
multicast_delegate<plugin_host*> on_remove_effect;
|
||||
private:
|
||||
const mixer_track_type type_;
|
||||
std::atomic<float> volume = 1.0f;
|
||||
channel_interface* channel_interface_ = nullptr;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user