Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akatsuki105 committed Apr 14, 2021
1 parent 6a4367c commit bcfb10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/gba/apu.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ func (g *GBA) soundClock(cycles uint32) {
sampPcmL, sampPcmR := int16(0), int16(0)

cnth := uint16(g._getRAM(ram.SOUNDCNT_H)) // snd_pcm_vol
volADiv, volBDiv := int16((cnth>>2)&0b1)+1, int16((cnth>>3)&0b1)+1
sampCh4, sampCh5 := int16(fifoASamp)/volADiv, int16(fifoBSamp)/volBDiv
volADiv, volBDiv := int16((cnth>>2)&0b1), int16((cnth>>3)&0b1)
sampCh4, sampCh5 := int16(fifoASamp)>>volADiv, int16(fifoBSamp)>>volBDiv

// Left
if util.Bit(cnth, 9) {
Expand Down

0 comments on commit bcfb10a

Please sign in to comment.