summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Leonardo Demartino (Delek) <deeleek@gmail.com>2021-05-21 09:56:43 -0300
committer GitHub <noreply@github.com>2021-05-21 14:56:43 +0200
commitdf6e58314caceb56fe8450c42af5c7de0356c6c8 (patch)
treea44db763f2d432250043b22c674e5fc9f812f0b0
parent11ced205433a3fd1b41dd344396b5d11ca57c50d (diff)
Fix c6280 volume envelope shape (#8087)
-rw-r--r--src/devices/sound/c6280.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/c6280.cpp b/src/devices/sound/c6280.cpp
index 1b6666455c9..644269e01f7 100644
--- a/src/devices/sound/c6280.cpp
+++ b/src/devices/sound/c6280.cpp
@@ -68,8 +68,8 @@ void c6280_device::sound_stream_update(sound_stream &stream, std::vector<read_st
int vlr = (0xf - rmal) + (0xf - al) + (0xf - ral);
if (vlr > 0xf) vlr = 0xf;
- vll = m_volume_table[(vll << 1) | (chan->control & 1)];
- vlr = m_volume_table[(vlr << 1) | (chan->control & 1)];
+ vll = m_volume_table[(vll << 1) | (~chan->control & 1)];
+ vlr = m_volume_table[(vlr << 1) | (~chan->control & 1)];
/* Check channel mode */
if ((ch >= 4) && (chan->noise_control & 0x80))