blob: e4fee35d2f3a491722aca4440a0f7d6a82d81531 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
// license:BSD-3-Clause
// copyright-holders:Sergey Svishchev
/**********************************************************************
Poisk-1 sound card
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#ifndef MAME_BUS_P1_SOUND_H
#define MAME_BUS_P1_SOUND_H
#pragma once
#include "isa.h"
#include "bus/midi/midi.h"
#include "machine/i8251.h"
#include "machine/pit8253.h"
#include "sound/dac.h"
#include "sound/flt_rc.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
class p1_sound_device : public device_t,
public device_isa8_card_interface
{
public:
// construction/destruction
p1_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
uint8_t d14_r(offs_t offset);
uint8_t d16_r(offs_t offset);
uint8_t d17_r(offs_t offset);
void d14_w(offs_t offset, uint8_t data);
void d16_w(offs_t offset, uint8_t data);
void d17_w(offs_t offset, uint8_t data);
uint8_t adc_r(offs_t offset);
void dac_w(offs_t offset, uint8_t data);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
// Optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
private:
DECLARE_WRITE_LINE_MEMBER(sampler_sync);
uint8_t m_dac_data[16];
int m_dac_ptr;
required_device<dac_byte_interface> m_dac;
optional_device<filter_rc_device> m_filter;
required_device<i8251_device> m_midi;
required_device<pit8253_device> m_d14;
required_device<pit8253_device> m_d16;
required_device<pit8253_device> m_d17;
};
// device type definition
DECLARE_DEVICE_TYPE(P1_SOUND, p1_sound_device)
#endif // MAME_BUS_P1_SOUND_H
|