Skip to content

Commit

Permalink
Fix AudioStreamPlayer2D/3D::is_playing right after a play()
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelofg55 committed Nov 17, 2018
1 parent 0afdc5c commit 016f7bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions scene/2d/audio_stream_player_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ void AudioStreamPlayer2D::play(float p_from_pos) {
}

if (stream_playback.is_valid()) {
active = true;
setplay = p_from_pos;
output_ready = false;
set_physics_process_internal(true);
Expand Down
1 change: 1 addition & 0 deletions scene/3d/audio_stream_player_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ float AudioStreamPlayer3D::get_pitch_scale() const {
void AudioStreamPlayer3D::play(float p_from_pos) {

if (stream_playback.is_valid()) {
active = true;
setplay = p_from_pos;
output_ready = false;
set_physics_process_internal(true);
Expand Down

0 comments on commit 016f7bd

Please sign in to comment.