mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-01 11:15:30 +03:00
Fix identifier release check in AudioTrack::Stop
This commit is contained in:
parent
d9c8e62d1c
commit
b00008daf5
@ -19,7 +19,7 @@ namespace skyline::audio {
|
|||||||
void AudioTrack::Stop() {
|
void AudioTrack::Stop() {
|
||||||
auto allSamplesReleased{[&]() {
|
auto allSamplesReleased{[&]() {
|
||||||
std::scoped_lock lock{bufferLock};
|
std::scoped_lock lock{bufferLock};
|
||||||
return identifiers.empty() || identifiers.end()->released;
|
return identifiers.empty() || identifiers.back().released;
|
||||||
}};
|
}};
|
||||||
|
|
||||||
while (!allSamplesReleased());
|
while (!allSamplesReleased());
|
||||||
|
Loading…
Reference in New Issue
Block a user