removed msm5205 volume trampoline (nw)

This commit is contained in:
smf- 2016-10-29 12:16:30 +01:00
parent bde830ac63
commit 705dde329e
5 changed files with 6 additions and 12 deletions

View File

@ -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) void msm5205_device::change_clock_w(int32_t clock)
{ {
attotime period; attotime period;

View File

@ -61,7 +61,6 @@ public:
// option , selected pin seletor // option , selected pin seletor
void playmode_w(int select); void playmode_w(int select);
void set_volume(int volume);
void change_clock_w(int32_t clock); void change_clock_w(int32_t clock);
protected: protected:

View File

@ -137,7 +137,7 @@ WRITE8_MEMBER(tbowl_state::adpcm_end_w)
WRITE8_MEMBER(tbowl_state::adpcm_vol_w) WRITE8_MEMBER(tbowl_state::adpcm_vol_w)
{ {
msm5205_device *adpcm = (offset & 1) ? m_msm2 : m_msm1; 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 ) void tbowl_state::adpcm_int( msm5205_device *device, int num )

View File

@ -90,7 +90,7 @@ WRITE8_MEMBER(tecmo_state::adpcm_end_w)
WRITE8_MEMBER(tecmo_state::adpcm_vol_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) WRITE_LINE_MEMBER(tecmo_state::adpcm_int)

View File

@ -1043,14 +1043,14 @@ TIMER_CALLBACK_MEMBER(pce_cd_device::adpcm_fadeout_callback)
if (m_adpcm_volume <= 0) if (m_adpcm_volume <= 0)
{ {
m_adpcm_volume = 0.0; m_adpcm_volume = 0.0;
m_msm->set_volume(0.0);
m_adpcm_fadeout_timer->adjust(attotime::never); m_adpcm_fadeout_timer->adjust(attotime::never);
} }
else else
{ {
m_msm->set_volume(m_adpcm_volume);
m_adpcm_fadeout_timer->adjust(attotime::from_usec(param), param); 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) 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) if (m_adpcm_volume >= 100.0)
{ {
m_adpcm_volume = 100.0; m_adpcm_volume = 100.0;
m_msm->set_volume(100.0);
m_adpcm_fadein_timer->adjust(attotime::never); m_adpcm_fadein_timer->adjust(attotime::never);
} }
else else
{ {
m_msm->set_volume(m_adpcm_volume);
m_adpcm_fadein_timer->adjust(attotime::from_usec(param), param); m_adpcm_fadein_timer->adjust(attotime::from_usec(param), param);
} }
m_msm->set_output_gain(ALL_OUTPUTS, m_adpcm_volume / 100.0);
} }