summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/custom.h
blob: 78dcacf553fcb512b4ed95027e1f7b884df93c38 (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
#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 );
#define SOUND_CUSTOM SND_GET_INFO_NAME( custom )

#endif /* __CUSTOM_H__ */