diff options
Diffstat (limited to 'src/devices/sound/ymf278b.cpp')
-rw-r--r-- | src/devices/sound/ymf278b.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/devices/sound/ymf278b.cpp b/src/devices/sound/ymf278b.cpp index dc0c4693aab..ada4a5544c7 100644 --- a/src/devices/sound/ymf278b.cpp +++ b/src/devices/sound/ymf278b.cpp @@ -225,6 +225,14 @@ void ymf278b_device::sound_stream_update(sound_stream &stream, stream_sample_t * { // TODO : FM only output is DO0, DO2 is actually mixed FM+PCM outputs ymf262_update_one(m_ymf262, outputs, samples); + vl = m_mix_level[m_fm_l]; + vr = m_mix_level[m_fm_r]; + for (i = 0; i < samples; i++) + { + // DO2 mixing + outputs[0][i] = (outputs[0][i] * vl) >> 16; + outputs[1][i] = (outputs[1][i] * vr) >> 16; + } return; } |