summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/scsp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/sound/scsp.cpp')
-rw-r--r--src/devices/sound/scsp.cpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/devices/sound/scsp.cpp b/src/devices/sound/scsp.cpp
index df2a5ef0143..10868deb158 100644
--- a/src/devices/sound/scsp.cpp
+++ b/src/devices/sound/scsp.cpp
@@ -1,5 +1,6 @@
// license:BSD-3-Clause
// copyright-holders:ElSemi, R. Belmont
+// thanks-to: kingshriek
/*
Sega/Yamaha YMF292-F (SCSP = Saturn Custom Sound Processor) emulation
By ElSemi
@@ -149,12 +150,12 @@ scsp_device::scsp_device(const machine_config &mconfig, const char *tag, device_
m_irq_cb(*this),
m_main_irq_cb(*this),
m_BUFPTR(0),
- m_SCSPRAM(NULL),
+ m_SCSPRAM(nullptr),
m_SCSPRAM_LENGTH(0),
m_Master(0),
- m_stream(NULL),
- m_buffertmpl(NULL),
- m_buffertmpr(NULL),
+ m_stream(nullptr),
+ m_buffertmpl(nullptr),
+ m_buffertmpr(nullptr),
m_IrqTimA(0),
m_IrqTimBC(0),
m_IrqMidi(0),
@@ -162,15 +163,15 @@ scsp_device::scsp_device(const machine_config &mconfig, const char *tag, device_
m_MidiOutR(0),
m_MidiW(0),
m_MidiR(0),
- m_timerA(NULL),
- m_timerB(NULL),
- m_timerC(NULL),
+ m_timerA(nullptr),
+ m_timerB(nullptr),
+ m_timerC(nullptr),
m_mcieb(0),
m_mcipd(0),
- m_bufferl(NULL),
- m_bufferr(NULL),
+ m_bufferl(nullptr),
+ m_bufferr(nullptr),
m_length(0),
- m_RBUFDST(NULL)
+ m_RBUFDST(nullptr)
{
memset(m_RINGBUF, 0, sizeof(m_RINGBUF));
memset(m_MidiStack, 0, sizeof(m_MidiStack));
@@ -611,7 +612,7 @@ void scsp_device::init()
{
m_Slots[i].slot=i;
m_Slots[i].active=0;
- m_Slots[i].base=NULL;
+ m_Slots[i].base=nullptr;
m_Slots[i].EG.state=SCSP_RELEASE;
}