diff --git a/src/engine/platform/msm6258.cpp b/src/engine/platform/msm6258.cpp index 7f4d2e63..fbede0b5 100644 --- a/src/engine/platform/msm6258.cpp +++ b/src/engine/platform/msm6258.cpp @@ -31,10 +31,6 @@ const char** DivPlatformMSM6258::getRegisterSheet() { } void DivPlatformMSM6258::acquire(short** buf, size_t len) { - short* outs[2]={ - &msmOut, - NULL - }; for (size_t h=0; hsound_stream_update(outs,1); + msm->sound_stream_update(&msmOut,1); msmDividerCount=msmDivider; } msmClockCount=msmClock; diff --git a/src/engine/platform/sound/oki/okim6258.cpp b/src/engine/platform/sound/oki/okim6258.cpp index 5bf6714d..a6c3e26f 100644 --- a/src/engine/platform/sound/oki/okim6258.cpp +++ b/src/engine/platform/sound/oki/okim6258.cpp @@ -135,9 +135,9 @@ void okim6258_device::device_reset() // sound_stream_update - handle a stream update //------------------------------------------------- -void okim6258_device::sound_stream_update(short** outputs, int len) +void okim6258_device::sound_stream_update(short* output, int len) { - short* buffer = outputs[0]; + short* buffer = output; if (m_status & STATUS_PLAYING) { diff --git a/src/engine/platform/sound/oki/okim6258.h b/src/engine/platform/sound/oki/okim6258.h index 88a429d3..b3dc65ef 100644 --- a/src/engine/platform/sound/oki/okim6258.h +++ b/src/engine/platform/sound/oki/okim6258.h @@ -43,7 +43,7 @@ public: void device_clock_changed(); // sound stream updates - void sound_stream_update(short** outputs, int len); + void sound_stream_update(short* output, int len); private: int16_t clock_adpcm(uint8_t nibble);