summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/vicdual.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/audio/vicdual.h')
-rw-r--r--src/mame/audio/vicdual.h35
1 files changed, 33 insertions, 2 deletions
diff --git a/src/mame/audio/vicdual.h b/src/mame/audio/vicdual.h
index e0a918899e2..eca7048d61a 100644
--- a/src/mame/audio/vicdual.h
+++ b/src/mame/audio/vicdual.h
@@ -7,6 +7,7 @@
#include "machine/netlist.h"
#include "netlist/nl_setup.h"
+#include "audio/nl_frogs.h"
class vicdual_audio_device_base : public device_t, public device_mixer_interface
@@ -18,9 +19,9 @@ protected:
virtual void device_start() override;
public:
- void write(u8 data);
+ virtual void write(u8 data);
-private:
+protected:
optional_device_array<netlist_mame_logic_input_device, 8> m_input_line;
u8 m_input_state = 0xff;
u8 const m_inputs_mask;
@@ -35,11 +36,41 @@ public:
borderline_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
};
+#if (FROGS_TEST_INDEPENDENT_NETLISTS)
+DECLARE_DEVICE_TYPE(FROGS_AUDIO_COMPONENT, frogs_audio_component_device)
+
+class frogs_audio_component_device : public device_t, public device_mixer_interface
+{
+public:
+ frogs_audio_component_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock, void (*netlist)(netlist::nlparse_t &) = nullptr);
+
+protected:
+ virtual void device_add_mconfig(machine_config &config) override;
+ virtual void device_start() override;
+
+protected:
+ void (*const m_netlist)(netlist::nlparse_t &);
+};
+#endif
class frogs_audio_device : public vicdual_audio_device_base
{
public:
frogs_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock);
+
+#if (FROGS_TEST_INDEPENDENT_NETLISTS)
+ virtual void write(u8 data) override;
+
+protected:
+ virtual void device_add_mconfig(machine_config &config) override;
+
+ required_device<netlist_mame_logic_input_device> m_jump;
+ required_device<netlist_mame_logic_input_device> m_tongue;
+ required_device<netlist_mame_logic_input_device> m_hop;
+ required_device<netlist_mame_logic_input_device> m_capture;
+ required_device<netlist_mame_logic_input_device> m_splash;
+ required_device<netlist_mame_logic_input_device> m_fly;
+#endif
};