mirror of
https://github.com/godotengine/godot.git
synced 2024-11-28 15:12:33 +00:00
Merge pull request #95321 from akien-mga/audio-sample-polyphonic-stop
AudioStreamPolyphonic: Implement stopping with sample playback
This commit is contained in:
commit
88f3b5f9d5
@ -143,6 +143,10 @@ int AudioStreamPlaybackPolyphonic::mix(AudioFrame *p_buffer, float p_rate_scale,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (s.stream_playback->get_is_sample()) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user