diff options
author | 2016-10-22 13:13:17 +0200 | |
---|---|---|
committer | 2016-10-22 13:13:17 +0200 | |
commit | ddb290d5f615019c33c42b8d94e5a5254cabcf33 (patch) | |
tree | a70f688b0df3acd19da7b1151e5902e3c6af3fa5 /src/mame/audio/geebee.cpp | |
parent | 333bff8de64dfaeb98134000412796b4fdef970b (diff) |
NOTICE (TYPE NAME CONSOLIDATION)
Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8
also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8
Diffstat (limited to 'src/mame/audio/geebee.cpp')
-rw-r--r-- | src/mame/audio/geebee.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/audio/geebee.cpp b/src/mame/audio/geebee.cpp index dc19b471233..51c2dfebcff 100644 --- a/src/mame/audio/geebee.cpp +++ b/src/mame/audio/geebee.cpp @@ -15,7 +15,7 @@ const device_type GEEBEE = &device_creator<geebee_sound_device>; -geebee_sound_device::geebee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) +geebee_sound_device::geebee_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, GEEBEE, "Gee Bee Audio Custom", tag, owner, clock, "geebee_sound", __FILE__), device_sound_interface(mconfig, *this), m_decay(nullptr), @@ -36,10 +36,10 @@ geebee_sound_device::geebee_sound_device(const machine_config &mconfig, const ch void geebee_sound_device::device_start() { - m_decay = std::make_unique<UINT16[]>(32768); + m_decay = std::make_unique<uint16_t[]>(32768); for (int i = 0; i < 0x8000; i++) - m_decay[0x7fff - i] = (INT16) (0x7fff/exp(1.0*i/4096)); + m_decay[0x7fff - i] = (int16_t) (0x7fff/exp(1.0*i/4096)); /* 1V = HSYNC = 18.432MHz / 3 / 2 / 384 = 8000Hz */ m_channel = machine().sound().stream_alloc(*this, 0, 1, 18432000 / 3 / 2 / 384); |