diff options
author | Yahkub-R <62478788+Yahkub-R@users.noreply.github.com> | 2024-08-06 09:46:37 -0400 |
---|---|---|
committer | Yahkub-R <62478788+Yahkub-R@users.noreply.github.com> | 2024-08-08 15:58:25 -0400 |
commit | bcd776e44174677f1995a49b697f9651f1f692ec (patch) | |
tree | 736921e5807b18feee8f805678b5a299b1f4a5a6 /platform/web/audio_driver_web.h | |
parent | 446e7a7c228d19341392ec3b02417244fe7dfe03 (diff) | |
download | redot-engine-bcd776e44174677f1995a49b697f9651f1f692ec.tar.gz |
Fix AudioStreamPlayer get_playback_position() for web build
Diffstat (limited to 'platform/web/audio_driver_web.h')
-rw-r--r-- | platform/web/audio_driver_web.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/web/audio_driver_web.h b/platform/web/audio_driver_web.h index 298ad90fae..9280094086 100644 --- a/platform/web/audio_driver_web.h +++ b/platform/web/audio_driver_web.h @@ -95,6 +95,7 @@ public: virtual void stop_sample_playback(const Ref<AudioSamplePlayback> &p_playback) override; virtual void set_sample_playback_pause(const Ref<AudioSamplePlayback> &p_playback, bool p_paused) override; virtual bool is_sample_playback_active(const Ref<AudioSamplePlayback> &p_playback) override; + virtual double get_sample_playback_position(const Ref<AudioSamplePlayback> &p_playback) override; virtual void update_sample_playback_pitch_scale(const Ref<AudioSamplePlayback> &p_playback, float p_pitch_scale = 0.0f) override; virtual void set_sample_playback_bus_volumes_linear(const Ref<AudioSamplePlayback> &p_playback, const HashMap<StringName, Vector<AudioFrame>> &p_bus_volumes) override; |