summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/c6280.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/c6280.cpp')
-rw-r--r--src/devices/sound/c6280.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/sound/c6280.cpp b/src/devices/sound/c6280.cpp
index c0a91f36651..53ac35ede3d 100644
--- a/src/devices/sound/c6280.cpp
+++ b/src/devices/sound/c6280.cpp
@@ -277,14 +277,14 @@ void c6280_device::calculate_clocks()
/* Make waveform frequency table */
for (int i = 0; i < 4096; i += 1)
{
- double step = ((clock() / rate) * 4096) / (i + 1);
+ double step = (16 * 4096) / (i + 1);
m_wave_freq_tab[(1 + i) & 0xFFF] = (uint32_t)step;
}
/* Make noise frequency table */
for (int i = 0; i < 32; i += 1)
{
- double step = ((clock() / rate) * 32) / (i+1);
+ double step = (16 * 32) / (i+1);
m_noise_freq_tab[i] = (uint32_t)step;
}