mirror of
https://github.com/holub/mame
synced 2025-04-25 01:40:16 +03:00
Merge pull request #3016 from firewave/multipcm
multipcm.cpp: avoid unnecessary initialization - also fixes division …
This commit is contained in:
commit
97d69cda9f
@ -566,7 +566,7 @@ void multipcm_device::device_start()
|
||||
m_attack_step = auto_alloc_array_clear(machine(), uint32_t, 0x40);
|
||||
m_decay_release_step = auto_alloc_array_clear(machine(), uint32_t, 0x40);
|
||||
const double attack_rate_to_decay_rate = 14.32833;
|
||||
for (int32_t i = 0; i < 0x40; ++i)
|
||||
for (int32_t i = 4; i < 0x40; ++i)
|
||||
{
|
||||
// Times are based on 44100Hz clock, adjust to real chip clock
|
||||
m_attack_step[i] = (float)(0x400 << EG_SHIFT) / (float)(BASE_TIMES[i] * 44100.0 / 1000.0);
|
||||
|
Loading…
Reference in New Issue
Block a user