mirror of
https://github.com/mattrberry/crab.git
synced 2025-01-30 20:34:45 +01:00
adjusted dma vs psg balance
This commit is contained in:
parent
e205057788
commit
1bc697f081
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ class APU
|
||||||
dma_right = ((dma_a * @soundcnt_h.dma_sound_a_right * vol_a) +
|
dma_right = ((dma_a * @soundcnt_h.dma_sound_a_right * vol_a) +
|
||||||
(dma_b * @soundcnt_h.dma_sound_b_right * vol_a)) / 2
|
(dma_b * @soundcnt_h.dma_sound_b_right * vol_a)) / 2
|
||||||
|
|
||||||
@buffer[@buffer_pos] = (psg_left + dma_left) / 2
|
@buffer[@buffer_pos] = (psg_left + 2*dma_left) / 3
|
||||||
@buffer[@buffer_pos + 1] = (psg_right + dma_right) / 2
|
@buffer[@buffer_pos + 1] = (psg_right + 2*dma_right) / 3
|
||||||
|
|
||||||
if @buffer[@buffer_pos].abs > 1 || @buffer[@buffer_pos + 1].abs > 1
|
if @buffer[@buffer_pos].abs > 1 || @buffer[@buffer_pos + 1].abs > 1
|
||||||
STDERR.puts "Left: #{@buffer[@buffer_pos]}"
|
STDERR.puts "Left: #{@buffer[@buffer_pos]}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue