Fix AudioStreamPlayer2D and 3D's playing not updating right away

This commit is contained in:
Micky
2022-09-05 22:08:12 +02:00
parent e3a51e53ef
commit b6db09968d
4 changed files with 10 additions and 4 deletions

View File

@ -284,6 +284,9 @@ bool AudioStreamPlayer2D::is_playing() const {
return true;
}
}
if (setplay.get() >= 0) {
return true; // play() has been called this frame, but no playback exists just yet.
}
return false;
}