blob: 013bdecf1091fb61e1feb725fcffe91e06dc43bc (
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
|
#pragma once
#ifndef __CUSTOM_H__
#define __CUSTOM_H__
typedef struct _custom_sound_interface custom_sound_interface;
struct _custom_sound_interface
{
void *(*start)(const device_config *device, int clock, const custom_sound_interface *config);
void (*stop)(const device_config *device, void *token);
void (*reset)(const device_config *device, void *token);
void *extra_data;
};
void *custom_get_token(int index);
#define CUSTOM_START(name) void *name(const device_config *device, int clock, const custom_sound_interface *config)
#define CUSTOM_STOP(name) void name(const device_config *device, void *token)
#define CUSTOM_RESET(name) void name(const device_config *device, void *token)
SND_GET_INFO( custom );
#endif /* __CUSTOM_H__ */
|