mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Fix bad check, add some comments
And remove unneded initial text.
This commit is contained in:
parent
5ea7729f66
commit
c418513fa5
3 changed files with 4 additions and 4 deletions
|
@ -1083,9 +1083,9 @@ void Atrac2::DecodeForSas(s16 *dstData, int *bytesWritten, int *finish) {
|
||||||
// Also works for the non-streaming case.
|
// Also works for the non-streaming case.
|
||||||
if (sas_.bufPtr[0] == 0 && sas_.curBuffer == 0) {
|
if (sas_.bufPtr[0] == 0 && sas_.curBuffer == 0) {
|
||||||
sas_.bufPtr[0] = info.buffer;
|
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_.streamOffset = 0;
|
||||||
sas_.fileOffset = info.bufferByte;
|
sas_.fileOffset = info.bufferByte; // Possibly should just set it to info.curFileOff
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 assembly[1000];
|
u8 assembly[1000];
|
||||||
|
|
|
@ -225,7 +225,7 @@ void SasAtrac3::GetNextSamples(s16 *outbuf, int wantedSamples) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int SasAtrac3::Concatenate(u32 bufPtr, u32 addbytes) {
|
int SasAtrac3::Concatenate(u32 bufPtr, u32 addbytes) {
|
||||||
if (atracID_ > 0) {
|
if (atracID_ >= 0) {
|
||||||
AtracSasAddStreamData(atracID_, bufPtr, addbytes);
|
AtracSasAddStreamData(atracID_, bufPtr, addbytes);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -92,7 +92,7 @@ void TabbedUIDialogScreenWithGameBackground::CreateViews() {
|
||||||
return UI::EVENT_DONE;
|
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);
|
}, true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue