summaryrefslogtreecommitdiffstats
path: root/src/emu/sound/tiaintf.h
blob: 726ff2df21b4dc0e336de0f109a63d68e7a62cae (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
39
40
41
42
43
44
45
46
47
48
#pragma once

#ifndef __TIAINTF_H__
#define __TIAINTF_H__

//**************************************************************************
//  INTERFACE CONFIGURATION MACROS
//**************************************************************************

#define MCFG_SOUND_TIA_ADD(_tag, _clock) \
	MCFG_DEVICE_ADD(_tag, TIA, _clock)
#define MCFG_SOUND_TIA_REPLACE(_tag, _clock) \
	MCFG_DEVICE_REPLACE(_tag, TIA, _clock)


//**************************************************************************
//  TYPE DEFINITIONS
//**************************************************************************

// ======================> tia_device

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

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

	// sound stream update overrides
	virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples);

public:
	DECLARE_WRITE8_MEMBER( tia_sound_w );

private:
	sound_stream *m_channel;
	void *m_chip;
};

extern const device_type TIA;


#endif /* __TIAINTF_H__ */