diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-23 11:21:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-23 11:21:14 +0200 |
commit | a5bc65bbadad814a157283749c1ef8552f1663c4 (patch) | |
tree | 02726cac4b18989faf21a50b92998f9031f0ddcd /scene/2d/audio_stream_player_2d.cpp | |
parent | 01c866a5993d78d414b81836eec4051c27444b08 (diff) | |
parent | d1ddee225830b28171de031bd1f1918ced21b38f (diff) |
Merge pull request #63265 from reduz/stream-bpm-support
Implement BPM support in AudioStream files.
Diffstat (limited to 'scene/2d/audio_stream_player_2d.cpp')
-rw-r--r-- | scene/2d/audio_stream_player_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/audio_stream_player_2d.cpp b/scene/2d/audio_stream_player_2d.cpp index eaab58c4ae..94d22111ea 100644 --- a/scene/2d/audio_stream_player_2d.cpp +++ b/scene/2d/audio_stream_player_2d.cpp @@ -69,7 +69,7 @@ void AudioStreamPlayer2D::_notification(int p_what) { if (setplay.get() >= 0 && stream.is_valid()) { active.set(); - Ref<AudioStreamPlayback> new_playback = stream->instance_playback(); + Ref<AudioStreamPlayback> new_playback = stream->instantiate_playback(); ERR_FAIL_COND_MSG(new_playback.is_null(), "Failed to instantiate playback."); AudioServer::get_singleton()->start_playback_stream(new_playback, _get_actual_bus(), volume_vector, setplay.get(), pitch_scale); stream_playbacks.push_back(new_playback); |