diff options
Diffstat (limited to 'src/mame/drivers/tamag1.cpp')
-rw-r--r-- | src/mame/drivers/tamag1.cpp | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/src/mame/drivers/tamag1.cpp b/src/mame/drivers/tamag1.cpp index 10afb70906b..84dc32cc379 100644 --- a/src/mame/drivers/tamag1.cpp +++ b/src/mame/drivers/tamag1.cpp @@ -24,7 +24,6 @@ public: tamag1_state(const machine_config &mconfig, device_type type, const char *tag) : driver_device(mconfig, type, tag), m_maincpu(*this, "maincpu"), - m_speaker(*this, "speaker"), m_out_x(*this, "%u.%u", 0U, 0U) { } @@ -33,14 +32,12 @@ public: DECLARE_INPUT_CHANGED_MEMBER(input_changed); private: - void speaker_w(uint8_t data); void tama_palette(palette_device &palette) const; E0C6S46_PIXEL_UPDATE(pixel_update); virtual void machine_start() override; required_device<e0c6s46_device> m_maincpu; - required_device<speaker_sound_device> m_speaker; output_finder<16, 40> m_out_x; }; @@ -92,20 +89,6 @@ void tamag1_state::tama_palette(palette_device &palette) const /*************************************************************************** - I/O - -***************************************************************************/ - -void tamag1_state::speaker_w(uint8_t data) -{ - // R43: speaker out - m_speaker->level_w(data >> 3 & 1); -} - - - -/*************************************************************************** - Inputs ***************************************************************************/ @@ -140,7 +123,7 @@ void tamag1_state::tama(machine_config &config) /* basic machine hardware */ E0C6S46(config, m_maincpu, 32.768_kHz_XTAL); m_maincpu->set_pixel_update_cb(FUNC(tamag1_state::pixel_update)); - m_maincpu->write_r<4>().set(FUNC(tamag1_state::speaker_w)); + m_maincpu->write_r<4>().set("speaker", FUNC(speaker_sound_device::level_w)).bit(3); /* video hardware */ screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_LCD)); @@ -156,7 +139,7 @@ void tamag1_state::tama(machine_config &config) /* sound hardware */ SPEAKER(config, "mono").front_center(); - SPEAKER_SOUND(config, m_speaker).add_route(ALL_OUTPUTS, "mono", 0.25); + SPEAKER_SOUND(config, "speaker").add_route(ALL_OUTPUTS, "mono", 0.25); } |