Fix AudioStreamPlayback::stop not being called on AudioStreamPlayer::stop
This commit is contained in:
parent
d16ce4a8ed
commit
9c8449a3db
|
@ -219,6 +219,7 @@ void AudioStreamPlayer::seek(float p_seconds) {
|
||||||
void AudioStreamPlayer::stop() {
|
void AudioStreamPlayer::stop() {
|
||||||
|
|
||||||
if (stream_playback.is_valid()) {
|
if (stream_playback.is_valid()) {
|
||||||
|
stream_playback->stop();
|
||||||
active = false;
|
active = false;
|
||||||
set_process_internal(false);
|
set_process_internal(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue