diff options
Diffstat (limited to 'src/devices/sound/ymf278b.cpp')
-rw-r--r-- | src/devices/sound/ymf278b.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/sound/ymf278b.cpp b/src/devices/sound/ymf278b.cpp index 60097767655..160d609126d 100644 --- a/src/devices/sound/ymf278b.cpp +++ b/src/devices/sound/ymf278b.cpp @@ -220,7 +220,7 @@ void ymf278b_device::compute_envelope(YMF278BSlot *slot) void ymf278b_device::sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) { int i, j; - YMF278BSlot *slot = NULL; + YMF278BSlot *slot = nullptr; INT16 sample = 0; INT32 *mixp; INT32 vl, vr; @@ -463,7 +463,7 @@ void ymf278b_device::C_w(UINT8 reg, UINT8 data) // Handle slot registers specifically if (reg >= 0x08 && reg <= 0xf7) { - YMF278BSlot *slot = NULL; + YMF278BSlot *slot = nullptr; int snum; snum = (reg-8) % 24; slot = &m_slots[snum]; @@ -844,7 +844,7 @@ void ymf278b_device::device_reset() void ymf278b_device::device_stop() { ymf262_shutdown(m_ymf262); - m_ymf262 = NULL; + m_ymf262 = nullptr; } void ymf278b_device::precompute_rate_tables() @@ -1016,7 +1016,7 @@ void ymf278b_device::device_start() /* stream system initialize */ int ymf262_clock = clock() / (19/8.0); m_ymf262 = ymf262_init(this, ymf262_clock, ymf262_clock / 288); - assert_always(m_ymf262 != NULL, "Error creating YMF262 chip"); + assert_always(m_ymf262 != nullptr, "Error creating YMF262 chip"); m_stream_ymf262 = machine().sound().stream_alloc(*this, 0, 4, ymf262_clock / 288); @@ -1033,7 +1033,7 @@ ymf278b_device::ymf278b_device(const machine_config &mconfig, const char *tag, d : device_t(mconfig, YMF278B, "YMF278B", tag, owner, clock, "ymf278b", __FILE__), device_sound_interface(mconfig, *this), device_memory_interface(mconfig, *this), - m_space_config("samples", ENDIANNESS_BIG, 8, 22, 0, NULL), + m_space_config("samples", ENDIANNESS_BIG, 8, 22, 0, nullptr), m_irq_handler(*this), m_last_fm_data(0) { |