summaryrefslogtreecommitdiffstats
path: root/src/mame/audio/redbaron.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/redbaron.cpp')
-rw-r--r--src/mame/audio/redbaron.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/audio/redbaron.cpp b/src/mame/audio/redbaron.cpp
index b8f71f1d5f2..9470b6495cd 100644
--- a/src/mame/audio/redbaron.cpp
+++ b/src/mame/audio/redbaron.cpp
@@ -35,7 +35,7 @@ const device_type REDBARON = &device_creator<redbaron_sound_device>;
// redbaron_sound_device - constructor
//-------------------------------------------------
-redbaron_sound_device::redbaron_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
+redbaron_sound_device::redbaron_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: device_t(mconfig, REDBARON, "Red Baron Audio Custom", tag, owner, clock, "redbaron_custom", __FILE__),
device_sound_interface(mconfig, *this),
m_vol_lookup(nullptr),
@@ -53,7 +53,7 @@ redbaron_sound_device::redbaron_sound_device(const machine_config &mconfig, cons
m_squeal_on_counter(0),
m_squeal_out(0)
{
- memset(m_vol_crash, 0, sizeof(INT16)*16);
+ memset(m_vol_crash, 0, sizeof(int16_t)*16);
}
@@ -65,9 +65,9 @@ void redbaron_sound_device::device_start()
{
int i;
- m_vol_lookup = std::make_unique<INT16[]>(32768);
+ m_vol_lookup = std::make_unique<int16_t[]>(32768);
for( i = 0; i < 0x8000; i++ )
- m_vol_lookup[0x7fff-i] = (INT16) (0x7fff/exp(1.0*i/4096));
+ m_vol_lookup[0x7fff-i] = (int16_t) (0x7fff/exp(1.0*i/4096));
for( i = 0; i < 16; i++ )
{