Skip to content

Commit

Permalink
C64: implement 6581 bias on dSID
Browse files Browse the repository at this point in the history
for PCM
  • Loading branch information
tildearrow committed Jan 31, 2025
1 parent 1ceffc6 commit e22d46e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engine/platform/sound/c64_d/dsid.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,11 @@ double dSID_render(struct SID_chip* sid) {
sid->SIDct->plp = tmp;
if (sid->M[0x18] & LP)
output += tmp;

// tildearrow: 6581 bias for software PCM
if (sid->g.model==6581) {
return (0.03 + (output / SID_OUT_SCALE)) * (sid->M[0x18] & 0xF);
}
return (output / SID_OUT_SCALE) * (sid->M[0x18] & 0xF);
}

Expand Down

0 comments on commit e22d46e

Please sign in to comment.