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
|
// license:GPL-2.0+
// copyright-holders:Ron Fries,Dan Boris
#ifndef MAME_SOUND_TIAINTF_H
#define MAME_SOUND_TIAINTF_H
#pragma once
//**************************************************************************
// 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_t clock);
DECLARE_WRITE8_MEMBER( tia_sound_w );
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_stop() override;
// sound stream update overrides
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
private:
sound_stream *m_channel;
void *m_chip;
};
DECLARE_DEVICE_TYPE(TIA, tia_device)
#endif // MAME_SOUND_TIAINTF_H
|