Fix per-channel osc

This commit is contained in:
cam900 2022-06-07 23:59:50 +09:00
parent dd93f6d18e
commit 7bbfe3af7c
2 changed files with 15 additions and 11 deletions

View file

@ -411,7 +411,7 @@ void sn76496_base_device::sound_stream_update(short** outputs, int outLen)
if (m_negate) { out = -out; out2 = -out2; }
outputs[0][sampindex]=out;
if (m_stereo)
if (m_stereo && (outputs[1] != nullptr))
outputs[1][sampindex]=out;
}
}