mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 04:06:14 +00:00
AudioStreamPolyphonic: Implement stopping with sample playback
Fixes #94724.
This commit is contained in:
parent
c73ac74c4a
commit
2edf9b95b3
@ -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 New Issue
Block a user