diff options
author | Vas Crabb <vas@vastheman.com> | 2016-12-27 17:56:05 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2016-12-27 17:56:05 +1100 |
commit | 137a126ef8af60e0bedc18753045a70f08ebfb54 (patch) | |
tree | 66e34f88f72c0253050d462fa254f692d98740bb | |
parent | 9ed5e076fc04075404ccbf2fe902fe9405c01b85 (diff) |
cleanup (nw)
-rw-r--r-- | src/mame/machine/archimds.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/machine/archimds.cpp b/src/mame/machine/archimds.cpp index 6afd88bf76f..9d5b46951f3 100644 --- a/src/mame/machine/archimds.cpp +++ b/src/mame/machine/archimds.cpp @@ -1039,12 +1039,12 @@ WRITE32_MEMBER(archimedes_state::archimedes_vidc_w) } else if (reg == 0xc0) { - m_vidc_regs[reg] = val&0xffff; + m_vidc_regs[reg] = val & 0xffff; if (m_audio_dma_on) { - double sndhz = 1000000.0f/(((m_vidc_regs[0xc0]&0xff)+2)); - sndhz /= 8.0f; + double sndhz = 1e6 / ((m_vidc_regs[0xc0] & 0xff) + 2); + sndhz /= 8.0; m_snd_timer->adjust(attotime::zero, 0, attotime::from_hz(sndhz)); //printf("VIDC: sound freq to %d, sndhz = %f\n", (val & 0xff)-2, sndhz); } @@ -1132,8 +1132,8 @@ WRITE32_MEMBER(archimedes_state::archimedes_memc_w) { //printf("MEMC: Starting audio DMA at %d uSec, buffer from %x to %x\n", ((m_vidc_regs[0xc0]&0xff)-2)*8, m_vidc_sndstart, m_vidc_sndend); - double sndhz = 1000000.0f/(((m_vidc_regs[0xc0]&0xff)+2)); - sndhz /= 8.0f; + double sndhz = 1e6 / ((m_vidc_regs[0xc0] & 0xff) + 2); + sndhz /= 8.0; m_snd_timer->adjust(attotime::zero, 0, attotime::from_hz(sndhz)); //printf("MEMC: audio DMA start, sound freq %d, sndhz = %f\n", (m_vidc_regs[0xc0] & 0xff)-2, sndhz); |