blob: 78e05bc319df9ba66720c5e91b0aa1cba2d55439 (
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
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
/*****************************************************************************
*
* audio/specimx.h
*
****************************************************************************/
#ifndef SPECIAL_SND_H_
#define SPECIAL_SND_H_
#include "emu.h"
class specimx_sound_device : public device_t,
public device_sound_interface
{
public:
specimx_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
~specimx_sound_device() { }
DECLARE_WRITE_LINE_MEMBER(set_input_ch0);
DECLARE_WRITE_LINE_MEMBER(set_input_ch1);
DECLARE_WRITE_LINE_MEMBER(set_input_ch2);
protected:
// device-level overrides
virtual void device_start() override;
// sound stream update overrides
virtual void sound_stream_update(sound_stream &stream, stream_sample_t **inputs, stream_sample_t **outputs, int samples) override;
private:
sound_stream *m_mixer_channel;
int m_specimx_input[3];
};
extern const device_type SPECIMX_SND;
#endif /* SPECIAL_SND_H_ */
|