DSP HLE: Fix buffer queue metadata

This commit is contained in:
wheremyfoodat 2024-07-31 02:51:40 +03:00
parent e26f58595e
commit e666afd1a3
2 changed files with 2 additions and 2 deletions

View file

@ -142,7 +142,7 @@ namespace Audio {
} else if (counter1 == 0xffff && counter0 != 0xfffe) {
return 0;
} else {
return counter0 > counter1 ? 0 : 1;
return (counter0 > counter1) ? 0 : 1;
}
}

View file

@ -342,7 +342,7 @@ namespace Audio {
Source::Buffer newBuffer{
.paddr = buffer.physicalAddress,
.sampleCount = buffer.length,
.adpcmScale = u8(buffer.adpcmScale),
.adpcmScale = u8(buffer.adpcm_ps),
.previousSamples = {s16(buffer.adpcm_yn[0]), s16(buffer.adpcm_yn[1])},
.adpcmDirty = buffer.adpcmDirty != 0,
.looping = buffer.isLooping != 0,