summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author ajrhacker <ajrhacker@users.noreply.github.com>2018-01-06 11:13:23 -0500
committer GitHub <noreply@github.com>2018-01-06 11:13:23 -0500
commit97d69cda9f2792900372c1d7b8b6aeac35f9d22f (patch)
treeabaf4517af8dc3b29ad141fe0ca5401239c75b7e
parenteec8fe93a273ca2b52d6d17873dc3dd0e66ff540 (diff)
parent8979dd1766512784f7bd75215143521f28693fcd (diff)
Merge pull request #3016 from firewave/multipcm
multipcm.cpp: avoid unnecessary initialization - also fixes division …
-rw-r--r--src/devices/sound/multipcm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/multipcm.cpp b/src/devices/sound/multipcm.cpp
index 8a384d6b956..8ba0f69ab36 100644
--- a/src/devices/sound/multipcm.cpp
+++ b/src/devices/sound/multipcm.cpp
@@ -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);