From c06ff7f76cf0caf7ac4586dcb5f068a828f2932b Mon Sep 17 00:00:00 2001 From: OBattler Date: Wed, 30 Oct 2019 18:01:23 +0100 Subject: [PATCH] Fixed for the array sizes in snd_dbopl.cc. --- src/sound/snd_dbopl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/snd_dbopl.cc b/src/sound/snd_dbopl.cc index e2a0e079b..2ccc9e56c 100644 --- a/src/sound/snd_dbopl.cc +++ b/src/sound/snd_dbopl.cc @@ -153,7 +153,7 @@ uint8_t opl_read(int nr, uint16_t addr) void opl2_update(int nr, int16_t *buffer, int samples) { int c; - Bit32s buffer_32[SOUNDBUFLEN]; + Bit32s buffer_32[samples]; if (opl_type) { @@ -171,7 +171,7 @@ void opl2_update(int nr, int16_t *buffer, int samples) void opl3_update(int nr, int16_t *buffer, int samples) { int c; - Bit32s buffer_32[SOUNDBUFLEN*2]; + Bit32s buffer_32[samples*2]; if (opl_type) {