summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/huc6230.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-02-05 12:41:58 +1100
committer Vas Crabb <vas@vastheman.com>2020-02-05 12:41:58 +1100
commit601034c8d71b64262b257e47797f3a315ed16fcb (patch)
tree12aa75b291e4de3b5399e6fabb39e035adf79bc8 /src/devices/sound/huc6230.cpp
parente204d878f8dd2a222821a81f6773e69529ce83e8 (diff)
devcb.cpp: syntactic sugar for constructing/resolving arrays of callbacks (nw)
Saves a lot of typing { *this }, { *this }... Could be applied in more places, I just did a few devices to demonstrate it.
Diffstat (limited to 'src/devices/sound/huc6230.cpp')
-rw-r--r--src/devices/sound/huc6230.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/sound/huc6230.cpp b/src/devices/sound/huc6230.cpp
index 5537f3ffea6..57e3b77ab26 100644
--- a/src/devices/sound/huc6230.cpp
+++ b/src/devices/sound/huc6230.cpp
@@ -147,7 +147,7 @@ huc6230_device::huc6230_device(const machine_config &mconfig, const char *tag, d
, m_adpcm_freq(0)
, m_pcm_lvol(0)
, m_pcm_rvol(0)
- , m_adpcm_update_cb{{*this}, {*this}}
+ , m_adpcm_update_cb(*this)
, m_vca_cb(*this)
{
}
@@ -168,8 +168,7 @@ void huc6230_device::device_add_mconfig(machine_config &config)
void huc6230_device::device_start()
{
- for (auto &cb : m_adpcm_update_cb)
- cb.resolve_safe(0);
+ m_adpcm_update_cb.resolve_all_safe(0);
m_vca_cb.resolve_safe();