From 25c5a8c820afa4dbb9d88e31669e1dac49c224a4 Mon Sep 17 00:00:00 2001 From: Philip Bennett Date: Sun, 23 Dec 2018 23:01:54 -0800 Subject: t10mmc - Support 256 gain levels (nw) --- src/devices/machine/t10mmc.cpp | 6 +++--- 1 file 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; -- cgit v1.2.3