summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/audio/vicdual-97271p.h
blob: 7f849c2686605931db045dde2200a7cb5c56b279 (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
// license:BSD-3-Clause
// copyright-holders:Ariane Fugmann
#ifndef MAME_AUDIO_VICDUAL_97271P_H
#define MAME_AUDIO_VICDUAL_97271P_H

#pragma once

#include "sound/samples.h"

#define MCFG_S97271P_ADD(_tag ) \
	MCFG_DEVICE_ADD(_tag, S97271P, 0)

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

class s97271p_device : public device_t
{
public:
	// construction/destruction
	s97271p_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);

	// daughterboard logic
	void port_w(uint8_t data);

protected:
	// device-level overrides
	virtual void device_start() override;
	virtual void device_reset() override;
	virtual void device_add_mconfig(machine_config &config) override;

private:
	required_device<samples_device> m_samples;

	uint8_t m_state;
};

// device type definition
DECLARE_DEVICE_TYPE(S97271P, s97271p_device)

#endif // MAME_AUDIO_VICDUAL_97271P_H