summaryrefslogtreecommitdiffstats
path: root/src/mame/audio/geebee.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/geebee.cpp')
-rw-r--r--src/mame/audio/geebee.cpp6
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);