diff options
Diffstat (limited to 'src/devices/sound/spkrdev.cpp')
-rw-r--r-- | src/devices/sound/spkrdev.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/devices/sound/spkrdev.cpp b/src/devices/sound/spkrdev.cpp index 4af44791921..fc912fbd367 100644 --- a/src/devices/sound/spkrdev.cpp +++ b/src/devices/sound/spkrdev.cpp @@ -76,20 +76,17 @@ #include "sound/spkrdev.h" -static const int16_t default_levels[2] = {0, 32767}; +static constexpr int16_t default_levels[2] = {0, 32767}; // Internal oversampling factor (interm. samples vs stream samples) -static const int RATE_MULTIPLIER = 4; +static constexpr int RATE_MULTIPLIER = 4; -const device_type SPEAKER_SOUND = device_creator<speaker_sound_device>; - -template class device_finder<speaker_sound_device, false>; -template class device_finder<speaker_sound_device, true>; +DEFINE_DEVICE_TYPE(SPEAKER_SOUND, speaker_sound_device, "speaker_sound_device", "Filtered 1-bit DAC") speaker_sound_device::speaker_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, SPEAKER_SOUND, "Filtered 1-bit DAC", tag, owner, clock, "speaker_sound", __FILE__) + : device_t(mconfig, SPEAKER_SOUND, tag, owner, clock) , device_sound_interface(mconfig, *this) , m_num_levels(2) , m_levels(default_levels) |