mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-15 18:39:47 +12:00
DSP HLE: ADPCM weights are signed
This commit is contained in:
parent
8ca0327f86
commit
26c07717aa
1 changed files with 2 additions and 2 deletions
|
@ -363,8 +363,8 @@ namespace Audio {
|
|||
const u32 predictor = (scaleAndPredictor >> 4) & 0x7;
|
||||
|
||||
// Fixed point (s5.11) coefficients for the history samples
|
||||
const u16 weight1 = source.adpcmCoefficients[predictor * 2];
|
||||
const u16 weight2 = source.adpcmCoefficients[predictor * 2 + 1];
|
||||
const s32 weight1 = source.adpcmCoefficients[predictor * 2];
|
||||
const s32 weight2 = source.adpcmCoefficients[predictor * 2 + 1];
|
||||
|
||||
// Decode samples in batches of 2
|
||||
// Each 4 bit ADPCM differential corresponds to 1 mono sample which will be output from both the left and right channel
|
||||
|
|
Loading…
Add table
Reference in a new issue