diff options
author | Douglas Leão <60024671+DeeJayLSP@users.noreply.github.com> | 2021-10-10 13:20:56 -0300 |
---|---|---|
committer | Douglas <djlsplays@gmail.com> | 2021-10-10 18:52:29 -0300 |
commit | 39a90751dc342c81e76a1c443e2e1eb83cf329f8 (patch) | |
tree | 7371ca9f3e99c389fbdd2beb2861f2c800db8527 /scene/audio/audio_stream_player.cpp | |
parent | 2a28df82d4979c3ca77c16ee9ae64c5a4f50a925 (diff) |
Allow AudioStreamPlayer(2D) to provide `pitch_scale` on playback
Diffstat (limited to 'scene/audio/audio_stream_player.cpp')
-rw-r--r-- | scene/audio/audio_stream_player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/audio/audio_stream_player.cpp b/scene/audio/audio_stream_player.cpp index 0334ba667b..d2fd65d3d9 100644 --- a/scene/audio/audio_stream_player.cpp +++ b/scene/audio/audio_stream_player.cpp @@ -135,7 +135,7 @@ void AudioStreamPlayer::play(float p_from_pos) { Ref<AudioStreamPlayback> stream_playback = stream->instance_playback(); ERR_FAIL_COND_MSG(stream_playback.is_null(), "Failed to instantiate playback."); - AudioServer::get_singleton()->start_playback_stream(stream_playback, bus, _get_volume_vector(), p_from_pos); + AudioServer::get_singleton()->start_playback_stream(stream_playback, bus, _get_volume_vector(), p_from_pos, pitch_scale); stream_playbacks.push_back(stream_playback); active.set(); set_process_internal(true); |