diff options
Diffstat (limited to 'src/mame/audio/gomoku.cpp')
-rw-r--r-- | src/mame/audio/gomoku.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/audio/gomoku.cpp b/src/mame/audio/gomoku.cpp index d4084838088..46b81b532d2 100644 --- a/src/mame/audio/gomoku.cpp +++ b/src/mame/audio/gomoku.cpp @@ -9,14 +9,14 @@ ***************************************************************************/ #include "emu.h" -#include "includes/gomoku.h" +#include "audio/gomoku.h" -static const int samplerate = 48000; -static const int defgain = 48; +static constexpr int samplerate = 48000; +static constexpr int defgain = 48; // device type definition -const device_type GOMOKU = device_creator<gomoku_sound_device>; +DEFINE_DEVICE_TYPE(GOMOKU, gomoku_sound_device, "gomoku_sound", "Gomoku Narabe Renju Audio Custom") //************************************************************************** @@ -28,7 +28,7 @@ const device_type GOMOKU = device_creator<gomoku_sound_device>; //------------------------------------------------- gomoku_sound_device::gomoku_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, GOMOKU, "Gomoku Narabe Renju Audio Custom", tag, owner, clock, "gomoku_sound", __FILE__), + : device_t(mconfig, GOMOKU, tag, owner, clock), device_sound_interface(mconfig, *this), m_last_channel(nullptr), m_sound_rom(nullptr), @@ -40,7 +40,7 @@ gomoku_sound_device::gomoku_sound_device(const machine_config &mconfig, const ch m_mixer_buffer(nullptr), m_mixer_buffer_2(nullptr) { - memset(m_channel_list, 0, sizeof(gomoku_sound_channel)*GOMOKU_MAX_VOICES); + memset(m_channel_list, 0, sizeof(gomoku_sound_channel)*MAX_VOICES); memset(m_soundregs1, 0, sizeof(uint8_t)*0x20); memset(m_soundregs2, 0, sizeof(uint8_t)*0x20); } @@ -66,7 +66,7 @@ void gomoku_sound_device::device_start() make_mixer_table(8, defgain); /* extract globals from the interface */ - m_num_voices = GOMOKU_MAX_VOICES; + m_num_voices = MAX_VOICES; m_last_channel = m_channel_list + m_num_voices; m_sound_rom = memregion(":gomoku")->base(); |