summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/pce_cd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pce_cd.cpp')
-rw-r--r--src/mame/machine/pce_cd.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/machine/pce_cd.cpp b/src/mame/machine/pce_cd.cpp
index 0e4c9ea390a..c8b5052207d 100644
--- a/src/mame/machine/pce_cd.cpp
+++ b/src/mame/machine/pce_cd.cpp
@@ -1043,14 +1043,14 @@ TIMER_CALLBACK_MEMBER(pce_cd_device::adpcm_fadeout_callback)
if (m_adpcm_volume <= 0)
{
m_adpcm_volume = 0.0;
- m_msm->set_volume(0.0);
m_adpcm_fadeout_timer->adjust(attotime::never);
}
else
{
- m_msm->set_volume(m_adpcm_volume);
m_adpcm_fadeout_timer->adjust(attotime::from_usec(param), param);
}
+
+ m_msm->set_output_gain(ALL_OUTPUTS, m_adpcm_volume / 100.0);
}
TIMER_CALLBACK_MEMBER(pce_cd_device::adpcm_fadein_callback)
@@ -1060,14 +1060,14 @@ TIMER_CALLBACK_MEMBER(pce_cd_device::adpcm_fadein_callback)
if (m_adpcm_volume >= 100.0)
{
m_adpcm_volume = 100.0;
- m_msm->set_volume(100.0);
m_adpcm_fadein_timer->adjust(attotime::never);
}
else
{
- m_msm->set_volume(m_adpcm_volume);
m_adpcm_fadein_timer->adjust(attotime::from_usec(param), param);
}
+
+ m_msm->set_output_gain(ALL_OUTPUTS, m_adpcm_volume / 100.0);
}