summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/gew7.h
blob: 5d50b2872f4c39c4b3f95e2570b0d36101c3368d (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
// license:BSD-3-Clause
// copyright-holders:Devin Acker
#ifndef MAME_SOUND_GEW7_H
#define MAME_SOUND_GEW7_H

#pragma once

#include "gew.h"

class gew7_pcm_device : public gew_pcm_device
{
public:
	gew7_pcm_device(const machine_config& mconfig, const char* tag, device_t* owner, uint32_t clock);

	void write(offs_t offset, uint8_t data);
	uint8_t read(offs_t offset);

	void write_hi(offs_t offset, uint8_t data);
	uint8_t read_hi(offs_t offset);

protected:
	virtual void device_start() override;

private:
	void init_sample(sample_t& sample, uint32_t index);
};

DECLARE_DEVICE_TYPE(GEW7_PCM, gew7_pcm_device)

#endif // MAME_SOUND_GEW7_H