summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Philip Bennett <p.j.bennett@gmail.com>2018-12-23 23:01:54 -0800
committer Vas Crabb <vas@vastheman.com>2018-12-24 22:22:45 +1100
commit25c5a8c820afa4dbb9d88e31669e1dac49c224a4 (patch)
treec8d5cd58afeab79bde2818331dce6f7501d8c6d4
parent75114524c46d1bac8e9610e6b4ec038635bc98df (diff)
t10mmc - Support 256 gain levels (nw)
-rw-r--r--src/devices/machine/t10mmc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/t10mmc.cpp b/src/devices/machine/t10mmc.cpp
index c20f29296e4..64958fa25bf 100644
--- a/src/devices/machine/t10mmc.cpp
+++ b/src/devices/machine/t10mmc.cpp
@@ -739,7 +739,7 @@ void t10mmc::ReadData( uint8_t *data, int dataLength )
data[7] = 0;
data[8] = 0x02; data[9] = 0xc0; // 4x speed
data[10] = 0;
- data[11] = 2; // two volume levels
+ data[11] = 256; // 256 volume levels
data[12] = 0x00; data[13] = 0x00; // buffer
data[14] = 0x02; data[15] = 0xc0; // 4x read speed
data[16] = 0;
@@ -797,8 +797,8 @@ void t10mmc::WriteData( uint8_t *data, int dataLength )
m_device->logerror("Ch 1 route: %x vol: %x\n", data[10], data[11]);
m_device->logerror("Ch 2 route: %x vol: %x\n", data[12], data[13]);
m_device->logerror("Ch 3 route: %x vol: %x\n", data[14], data[15]);
- m_cdda->set_output_gain(0, data[17] ? 1.0f : 0.0f);
- m_cdda->set_output_gain(1, data[19] ? 1.0f : 0.0f);
+ m_cdda->set_output_gain(0, data[17] / 255.0f);
+ m_cdda->set_output_gain(1, data[19] / 255.0f);
break;
}
break;