blob: 79ed35c0377a533dd58e64bffeab2e4474fa3130 (
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
|
/**********************************************************************
speaker.h
Sound driver to emulate a simple speaker,
driven by one or more output bits
**********************************************************************/
#pragma once
#ifndef __SPEAKER_H__
#define __SPEAKER_H__
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _speaker_interface speaker_interface;
struct _speaker_interface
{
int num_level; /* optional: number of levels (if not two) */
const INT16 *levels; /* optional: pointer to level lookup table */
};
void speaker_level_w (const device_config *device, int new_level);
DEVICE_GET_INFO( speaker );
#define SOUND_SPEAKER DEVICE_GET_INFO_NAME( speaker )
#ifdef __cplusplus
}
#endif
#endif /* __SPEAKER_H__ */
|