blob: cd39cc5bbb8ea04cb0a1b75a497757feb105b5ac (
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
|
// license:BSD-3-Clause
// copyright-holders:R. Belmont
/**********************************************************************
Commodore PET userport "CB2 sound" audio device emulation
**********************************************************************/
#ifndef MAME_BUS_PET_CB2SND_H
#define MAME_BUS_PET_CB2SND_H
#pragma once
#include "user.h"
#include "sound/dac.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class pet_userport_cb2_sound_device : public device_t,
public device_pet_user_port_interface
{
public:
// construction/destruction
pet_userport_cb2_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
virtual DECLARE_WRITE_LINE_MEMBER( input_m ) override;
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_add_mconfig(machine_config &config) override;
required_device<dac_bit_interface> m_dac;
};
// device type definition
DECLARE_DEVICE_TYPE(PET_USERPORT_CB2_SOUND_DEVICE, pet_userport_cb2_sound_device)
#endif // MAME_BUS_PET_CB2SND_H
|