Fix bad check, add some comments

And remove unneded initial text.
This commit is contained in:
Henrik Rydgård 2025-03-25 21:55:42 +01:00
parent 5ea7729f66
commit c418513fa5
3 changed files with 4 additions and 4 deletions

View file

@ -1083,9 +1083,9 @@ void Atrac2::DecodeForSas(s16 *dstData, int *bytesWritten, int *finish) {
// Also works for the non-streaming case.
if (sas_.bufPtr[0] == 0 && sas_.curBuffer == 0) {
sas_.bufPtr[0] = info.buffer;
sas_.bufSize[0] = info.bufferByte - info.streamOff;
sas_.bufSize[0] = info.bufferByte - info.streamOff; // also equals info.streamDataByte
sas_.streamOffset = 0;
sas_.fileOffset = info.bufferByte;
sas_.fileOffset = info.bufferByte; // Possibly should just set it to info.curFileOff
}
u8 assembly[1000];

View file

@ -225,7 +225,7 @@ void SasAtrac3::GetNextSamples(s16 *outbuf, int wantedSamples) {
}
int SasAtrac3::Concatenate(u32 bufPtr, u32 addbytes) {
if (atracID_ > 0) {
if (atracID_ >= 0) {
AtracSasAddStreamData(atracID_, bufPtr, addbytes);
}
return 0;

View file

@ -92,7 +92,7 @@ void TabbedUIDialogScreenWithGameBackground::CreateViews() {
return UI::EVENT_DONE;
});
noSearchResults_ = searchSettings->Add(new TextView(se->T("No settings matched '%1'"), new LinearLayoutParams(Margins(20, 5))));
noSearchResults_ = searchSettings->Add(new TextView("", new LinearLayoutParams(Margins(20, 5))));
}, true);
}