From b00008daf5ba0bdeab98fc432bf0f9c237bffefc Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Wed, 31 Aug 2022 20:39:36 +0100 Subject: [PATCH] Fix identifier release check in AudioTrack::Stop --- app/src/main/cpp/skyline/audio/track.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/cpp/skyline/audio/track.cpp b/app/src/main/cpp/skyline/audio/track.cpp index 30142a9e..f9c03c4f 100644 --- a/app/src/main/cpp/skyline/audio/track.cpp +++ b/app/src/main/cpp/skyline/audio/track.cpp @@ -19,7 +19,7 @@ namespace skyline::audio { void AudioTrack::Stop() { auto allSamplesReleased{[&]() { std::scoped_lock lock{bufferLock}; - return identifiers.empty() || identifiers.end()->released; + return identifiers.empty() || identifiers.back().released; }}; while (!allSamplesReleased());