summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/trackfld.h
blob: 9a81b0db2295b40028eeb5487c830e4b569d9cb4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include "sound/vlm5030.h"
#include "cpu/m6800/m6800.h"

class trackfld_audio_device : public device_t,
									public device_sound_interface
{
public:
	trackfld_audio_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
	~trackfld_audio_device() {}

	DECLARE_WRITE8_MEMBER(konami_sh_irqtrigger_w );
	DECLARE_READ8_MEMBER(trackfld_sh_timer_r );
	DECLARE_READ8_MEMBER(trackfld_speech_r );
	DECLARE_WRITE8_MEMBER(trackfld_sound_w );
	DECLARE_READ8_MEMBER(hyperspt_sh_timer_r );
	DECLARE_WRITE8_MEMBER(hyperspt_sound_w );
	DECLARE_WRITE8_MEMBER(konami_SN76496_latch_w );
	DECLARE_WRITE8_MEMBER(konami_SN76496_w );

protected:
	// device-level overrides
	virtual void device_config_complete();
	virtual void device_start();
	virtual void device_reset();

	// sound stream update overrides
	virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);
	
private:
	// internal state
	int      m_last_addr;
	int      m_last_irq;

	cpu_device *m_audiocpu;
	vlm5030_device *m_vlm;
};

extern const device_type TRACKFLD_AUDIO;