mirror of
https://github.com/holub/mame
synced 2025-06-28 07:04:35 +03:00
flower_a, gomoku_a: safer intermediate sound mixer buffer size
This commit is contained in:
parent
256894fdb4
commit
cb43fe36d3
@ -66,7 +66,7 @@ void flower_sound_device::device_start()
|
|||||||
m_iospace = &space(AS_IO);
|
m_iospace = &space(AS_IO);
|
||||||
m_stream = stream_alloc(0, 1, clock()/2);
|
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);
|
make_mixer_table(MAX_VOICES, defgain);
|
||||||
|
|
||||||
save_item(STRUCT_MEMBER(m_channel_list, start_nibbles));
|
save_item(STRUCT_MEMBER(m_channel_list, start_nibbles));
|
||||||
|
@ -49,7 +49,7 @@ void gomoku_sound_device::device_start()
|
|||||||
m_stream = stream_alloc(0, 1, clock());
|
m_stream = stream_alloc(0, 1, clock());
|
||||||
|
|
||||||
// allocate a buffer to mix into - 1 second's worth should be more than enough
|
// 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
|
// start with sound enabled, many games don't have a sound enable register
|
||||||
m_sound_enable = 1;
|
m_sound_enable = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user