mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
k054321: make it work on all speaker inputs, not just the first (nw)
This commit is contained in:
parent
932b9ad71e
commit
317a597236
@ -134,6 +134,9 @@ WRITE8_MEMBER(k054321_device::dummy_w)
|
||||
void k054321_device::propagate_volume()
|
||||
{
|
||||
double vol = pow(2, (m_volume - 40)/10.0);
|
||||
m_left->set_input_gain(0, m_active & 2 ? vol : 0.0);
|
||||
m_right->set_input_gain(0, m_active & 1 ? vol : 0.0);
|
||||
|
||||
for (int i = 0; i < m_left->inputs(); i++)
|
||||
m_left->set_input_gain(i, m_active & 2 ? vol : 0.0);
|
||||
for (int i = 0; i < m_right->inputs(); i++)
|
||||
m_right->set_input_gain(0, m_active & 1 ? vol : 0.0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user