blob: 1ea6c6a0f96415267605db4e70c0e81458e1553d (
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
|
// license:GPL-2.0+
// copyright-holders:Ron Fries,Dan Boris
#ifndef MAME_SOUND_TIAINTF_H
#define MAME_SOUND_TIAINTF_H
#pragma once
//**************************************************************************
// 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, const XTAL &clock);
void tia_sound_w(offs_t offset, uint8_t data);
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, std::vector<read_stream_view> const &inputs, std::vector<write_stream_view> &outputs) override;
private:
sound_stream *m_channel;
void *m_chip;
};
DECLARE_DEVICE_TYPE(TIA, tia_device)
#endif // MAME_SOUND_TIAINTF_H
|