Skip to content

Commit

Permalink
DSP HLE: ADPCM weights are signed
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Apr 26, 2024
1 parent 8ca0327 commit 26c0771
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/audio/hle_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 26c0771

Please sign in to comment.