Merge pull request #95321 from akien-mga/audio-sample-polyphonic-stop
AudioStreamPolyphonic: Implement stopping with sample playback
This commit is contained in:
commit
88f3b5f9d5
1 changed files with 4 additions and 0 deletions
|
@ -143,6 +143,10 @@ int AudioStreamPlaybackPolyphonic::mix(AudioFrame *p_buffer, float p_rate_scale,
|
|||
}
|
||||
|
||||
if (s.stream_playback->get_is_sample()) {
|
||||
if (s.finish_request.is_set()) {
|
||||
s.active.clear();
|
||||
AudioServer::get_singleton()->stop_sample_playback(s.stream_playback->get_sample_playback());
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue