diff options
Diffstat (limited to 'src/devices/sound/ymf271.cpp')
-rw-r--r-- | src/devices/sound/ymf271.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/ymf271.cpp b/src/devices/sound/ymf271.cpp index 5df9075a090..70f466b0667 100644 --- a/src/devices/sound/ymf271.cpp +++ b/src/devices/sound/ymf271.cpp @@ -516,7 +516,7 @@ void ymf271_device::update_pcm(int slotnum, int32_t *mixp, int length) if (ch1_vol > 65536) ch1_vol = 65536; if (ch2_vol > 65536) ch2_vol = 65536; if (ch3_vol > 65536) ch3_vol = 65536; - + *mixp++ += (sample * ch0_vol) >> 16; *mixp++ += (sample * ch1_vol) >> 16; *mixp++ += (sample * ch2_vol) >> 16; @@ -1746,7 +1746,7 @@ void ymf271_device::device_start() m_master_clock = clock(); init_tables(); init_state(); - + m_mix_buffer.resize(m_master_clock/(384/4)); m_stream = machine().sound().stream_alloc(*this, 0, 4, m_master_clock/384); } |