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/3d/audio_stream_player_3d.cpp | |
parent | 2a28df82d4979c3ca77c16ee9ae64c5a4f50a925 (diff) | |
download | redot-engine-39a90751dc342c81e76a1c443e2e1eb83cf329f8.tar.gz |
Allow AudioStreamPlayer(2D) to provide `pitch_scale` on playback
Diffstat (limited to 'scene/3d/audio_stream_player_3d.cpp')
-rw-r--r-- | scene/3d/audio_stream_player_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/audio_stream_player_3d.cpp b/scene/3d/audio_stream_player_3d.cpp index a54b10ba70..c422070480 100644 --- a/scene/3d/audio_stream_player_3d.cpp +++ b/scene/3d/audio_stream_player_3d.cpp @@ -282,7 +282,7 @@ void AudioStreamPlayer3D::_notification(int p_what) { ERR_FAIL_COND_MSG(new_playback.is_null(), "Failed to instantiate playback."); Map<StringName, Vector<AudioFrame>> bus_map; bus_map[_get_actual_bus()] = volume_vector; - AudioServer::get_singleton()->start_playback_stream(new_playback, bus_map, setplay.get(), linear_attenuation, attenuation_filter_cutoff_hz, actual_pitch_scale); + AudioServer::get_singleton()->start_playback_stream(new_playback, bus_map, setplay.get(), actual_pitch_scale, linear_attenuation, attenuation_filter_cutoff_hz); stream_playbacks.push_back(new_playback); setplay.set(-1); } |