From cb43fe36d33da77dc97a4cb87516bd9cf6dda0a0 Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 4 Nov 2022 20:02:47 +0100 Subject: [PATCH] flower_a, gomoku_a: safer intermediate sound mixer buffer size --- src/mame/misc/flower_a.cpp | 2 +- src/mame/nichibutsu/gomoku_a.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mame/misc/flower_a.cpp b/src/mame/misc/flower_a.cpp index 563abf22f11..176d367f491 100644 --- a/src/mame/misc/flower_a.cpp +++ b/src/mame/misc/flower_a.cpp @@ -66,7 +66,7 @@ void flower_sound_device::device_start() m_iospace = &space(AS_IO); m_stream = stream_alloc(0, 1, clock()/2); - m_mixer_buffer.resize(clock()/50); + m_mixer_buffer.resize(clock()/2); make_mixer_table(MAX_VOICES, defgain); save_item(STRUCT_MEMBER(m_channel_list, start_nibbles)); diff --git a/src/mame/nichibutsu/gomoku_a.cpp b/src/mame/nichibutsu/gomoku_a.cpp index 633799d39d0..7fb6bed339e 100644 --- a/src/mame/nichibutsu/gomoku_a.cpp +++ b/src/mame/nichibutsu/gomoku_a.cpp @@ -49,7 +49,7 @@ void gomoku_sound_device::device_start() m_stream = stream_alloc(0, 1, clock()); // allocate a buffer to mix into - 1 second's worth should be more than enough - m_mixer_buffer.resize(clock()/50); + m_mixer_buffer.resize(clock()); // start with sound enabled, many games don't have a sound enable register m_sound_enable = 1;