mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-07 22:55:40 +12:00
DSP HLE: Fix buffer queue metadata
This commit is contained in:
parent
e26f58595e
commit
e666afd1a3
2 changed files with 2 additions and 2 deletions
|
@ -142,7 +142,7 @@ namespace Audio {
|
||||||
} else if (counter1 == 0xffff && counter0 != 0xfffe) {
|
} else if (counter1 == 0xffff && counter0 != 0xfffe) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
return counter0 > counter1 ? 0 : 1;
|
return (counter0 > counter1) ? 0 : 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -342,7 +342,7 @@ namespace Audio {
|
||||||
Source::Buffer newBuffer{
|
Source::Buffer newBuffer{
|
||||||
.paddr = buffer.physicalAddress,
|
.paddr = buffer.physicalAddress,
|
||||||
.sampleCount = buffer.length,
|
.sampleCount = buffer.length,
|
||||||
.adpcmScale = u8(buffer.adpcmScale),
|
.adpcmScale = u8(buffer.adpcm_ps),
|
||||||
.previousSamples = {s16(buffer.adpcm_yn[0]), s16(buffer.adpcm_yn[1])},
|
.previousSamples = {s16(buffer.adpcm_yn[0]), s16(buffer.adpcm_yn[1])},
|
||||||
.adpcmDirty = buffer.adpcmDirty != 0,
|
.adpcmDirty = buffer.adpcmDirty != 0,
|
||||||
.looping = buffer.isLooping != 0,
|
.looping = buffer.isLooping != 0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue