mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
removed msm5205 volume trampoline (nw)
This commit is contained in:
parent
bde830ac63
commit
705dde329e
@ -290,11 +290,6 @@ void msm5205_device::playmode_w(int select)
|
||||
}
|
||||
|
||||
|
||||
void msm5205_device::set_volume(int volume)
|
||||
{
|
||||
m_stream->set_output_gain(0,volume / 100.0);
|
||||
}
|
||||
|
||||
void msm5205_device::change_clock_w(int32_t clock)
|
||||
{
|
||||
attotime period;
|
||||
|
@ -61,7 +61,6 @@ public:
|
||||
// option , selected pin seletor
|
||||
void playmode_w(int select);
|
||||
|
||||
void set_volume(int volume);
|
||||
void change_clock_w(int32_t clock);
|
||||
|
||||
protected:
|
||||
|
@ -137,7 +137,7 @@ WRITE8_MEMBER(tbowl_state::adpcm_end_w)
|
||||
WRITE8_MEMBER(tbowl_state::adpcm_vol_w)
|
||||
{
|
||||
msm5205_device *adpcm = (offset & 1) ? m_msm2 : m_msm1;
|
||||
adpcm->set_volume((data & 0x7f) * 100 / 0x7f);
|
||||
adpcm->set_output_gain(ALL_OUTPUTS, (data & 127) / 127.0);
|
||||
}
|
||||
|
||||
void tbowl_state::adpcm_int( msm5205_device *device, int num )
|
||||
|
@ -90,7 +90,7 @@ WRITE8_MEMBER(tecmo_state::adpcm_end_w)
|
||||
|
||||
WRITE8_MEMBER(tecmo_state::adpcm_vol_w)
|
||||
{
|
||||
m_msm->set_volume((data & 0x0f) * 100 / 15);
|
||||
m_msm->set_output_gain(ALL_OUTPUTS, (data & 15) / 15.0);
|
||||
}
|
||||
|
||||
WRITE_LINE_MEMBER(tecmo_state::adpcm_int)
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user