Fix identifier release check in AudioTrack::Stop

This commit is contained in:
Billy Laws 2022-08-31 20:39:36 +01:00
parent d9c8e62d1c
commit b00008daf5

View File

@ -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());