diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-10-10 10:58:29 -0300 |
---|---|---|
committer | Marcelo Fernandez <marcelofg55@gmail.com> | 2018-12-12 21:44:11 -0300 |
commit | 7da55fb739e4f2f2ad50611e78f09caafc7ede76 (patch) | |
tree | fc5fb36f0d5d5fd83f1805ca3023c99f60024571 /servers/audio_server.h | |
parent | 4c1a5d9cfe2da761bfe17d52126deabc1f1c1bd3 (diff) |
Fix AudioEffectRecord not working without thread support
Diffstat (limited to 'servers/audio_server.h')
-rw-r--r-- | servers/audio_server.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/audio_server.h b/servers/audio_server.h index ba6569eb38..4f981eac2d 100644 --- a/servers/audio_server.h +++ b/servers/audio_server.h @@ -262,6 +262,7 @@ private: }; Set<CallbackItem> callbacks; + Set<CallbackItem> update_callbacks; friend class AudioDriver; void _driver_process(int p_frames, int32_t *p_buffer); @@ -357,6 +358,9 @@ public: void add_callback(AudioCallback p_callback, void *p_userdata); void remove_callback(AudioCallback p_callback, void *p_userdata); + void add_update_callback(AudioCallback p_callback, void *p_userdata); + void remove_update_callback(AudioCallback p_callback, void *p_userdata); + void set_bus_layout(const Ref<AudioBusLayout> &p_bus_layout); Ref<AudioBusLayout> generate_bus_layout() const; |