mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Stop AudioStreamPlayback only if it's not playing
This commit is contained in:
parent
bdf625bd54
commit
a12c1d3ddb
1 changed files with 3 additions and 1 deletions
|
@ -1272,7 +1272,9 @@ void AudioServer::stop_playback_stream(Ref<AudioStreamPlayback> p_playback) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (!p_playback->is_playing()) {
|
||||
p_playback->stop();
|
||||
}
|
||||
|
||||
AudioStreamPlaybackListNode *playback_node = _find_playback_list_node(p_playback);
|
||||
if (!playback_node) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue