flower_a, gomoku_a: safer intermediate sound mixer buffer size

This commit is contained in:
hap 2022-11-04 20:02:47 +01:00
parent 256894fdb4
commit cb43fe36d3
2 changed files with 2 additions and 2 deletions

View File

@ -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));

View File

@ -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;