From 2af71d049b865e4f21e9974e7ccf8e2e59fa5fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 25 Mar 2025 23:27:43 +0100 Subject: [PATCH] Lost this behavior by mistake. Should fix the tests. --- Core/HLE/AtracCtx2.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/HLE/AtracCtx2.cpp b/Core/HLE/AtracCtx2.cpp index f9c6e97c95..655a074b4b 100644 --- a/Core/HLE/AtracCtx2.cpp +++ b/Core/HLE/AtracCtx2.cpp @@ -1081,11 +1081,13 @@ void Atrac2::DecodeForSas(s16 *dstData, int *bytesWritten, int *finish) { // First frame handling. Not sure if accurate. Set up the initial buffer as the current streaming buffer. // Also works for the non-streaming case. - if (sas_.bufPtr[0] == 0 && sas_.curBuffer == 0) { + if (info.buffer) { + sas_.curBuffer = 0; sas_.bufPtr[0] = info.buffer; sas_.bufSize[0] = info.bufferByte - info.streamOff; // also equals info.streamDataByte sas_.streamOffset = 0; sas_.fileOffset = info.bufferByte; // Possibly should just set it to info.curFileOff + info.buffer = 0; // yes, this happens. } u8 assembly[1000];