diff options
Diffstat (limited to 'src/devices/sound/ta7630.cpp')
-rw-r--r-- | src/devices/sound/ta7630.cpp | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/devices/sound/ta7630.cpp b/src/devices/sound/ta7630.cpp index 6dcb84455b9..7e005eddb4a 100644 --- a/src/devices/sound/ta7630.cpp +++ b/src/devices/sound/ta7630.cpp @@ -40,25 +40,21 @@ DEFINE_DEVICE_TYPE(TA7630, ta7630_device, "ta7630", "Toshiba TA7630P") ta7630_device::ta7630_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, TA7630, tag, owner, clock) -// ,device_sound_interface(mconfig, *this) { } - //------------------------------------------------- // device_start - device-specific startup //------------------------------------------------- void ta7630_device::device_start() { - int i; - double db = 0.0; double db_step = 1.50; /* 1.50 dB step (at least, maybe more) */ double db_step_inc = 0.125; - for (i = 0; i < 16; i++) + for (int i = 0; i < 16; i++) { double max = 100.0 / pow(10.0, db/20.0 ); m_vol_ctrl[15 - i] = max / 100.0; @@ -72,29 +68,18 @@ void ta7630_device::device_start() } -//------------------------------------------------- -// device_reset - device-specific reset -//------------------------------------------------- - -void ta7630_device::device_reset() -{ - -} - //************************************************************************** // filter setters //************************************************************************** -void ta7630_device::set_device_volume(device_sound_interface *device,uint8_t value) +void ta7630_device::set_device_volume(device_sound_interface *device, uint8_t value) { - device->set_output_gain(ALL_OUTPUTS,m_vol_ctrl[value & 0xf]); + device->set_output_gain(ALL_OUTPUTS, m_vol_ctrl[value & 0xf]); } -// TODO: Most Taito implementations uses this, is it correct? -void ta7630_device::set_channel_volume(device_sound_interface *device, uint8_t ch,uint8_t value) +// TODO: Most Taito implementations uses this, is it correct? +void ta7630_device::set_channel_volume(device_sound_interface *device, uint8_t ch, uint8_t value) { - device->set_output_gain(ch,m_vol_ctrl[value & 0xf]); + device->set_output_gain(ch, m_vol_ctrl[value & 0xf]); } - - |