summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/custom.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/custom.c')
-rw-r--r--src/emu/sound/custom.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/src/emu/sound/custom.c b/src/emu/sound/custom.c
deleted file mode 100644
index 1b6a2a722fe..00000000000
--- a/src/emu/sound/custom.c
+++ /dev/null
@@ -1,85 +0,0 @@
-#include "sndintrf.h"
-#include "custom.h"
-
-
-struct custom_info
-{
- const custom_sound_interface *intf;
- void * token;
-};
-
-
-
-static SND_START( custom )
-{
- struct custom_info *info = device->token;
-
- /* stash a pointer and call the start routine */
- info->intf = device->static_config;
- if (info->intf->start)
- {
- info->token = (*info->intf->start)(device, clock, device->static_config);
- assert_always(info->token != NULL, "Error starting custom sound");
- }
-}
-
-
-static SND_STOP( custom )
-{
- struct custom_info *info = device->token;
- if (info->intf->stop)
- (*info->intf->stop)(device, info->token);
-}
-
-
-static SND_RESET( custom )
-{
- struct custom_info *info = device->token;
- if (info->intf->reset)
- (*info->intf->reset)(device, info->token);
-}
-
-
-void *custom_get_token(int index)
-{
- struct custom_info *token = sndti_token(SOUND_CUSTOM, index);
- return token->token;
-}
-
-
-
-/**************************************************************************
- * Generic get_info
- **************************************************************************/
-
-static SND_SET_INFO( custom )
-{
- switch (state)
- {
- /* no parameters to set */
- }
-}
-
-
-SND_GET_INFO( custom )
-{
- switch (state)
- {
- /* --- the following bits of info are returned as 64-bit signed integers --- */
- case SNDINFO_INT_TOKEN_BYTES: info->i = sizeof(struct custom_info); break;
-
- /* --- the following bits of info are returned as pointers to data or functions --- */
- case SNDINFO_PTR_SET_INFO: info->set_info = SND_SET_INFO_NAME( custom ); break;
- case SNDINFO_PTR_START: info->start = SND_START_NAME( custom ); break;
- case SNDINFO_PTR_STOP: info->stop = SND_STOP_NAME( custom ); break;
- case SNDINFO_PTR_RESET: info->reset = SND_RESET_NAME( custom ); break;
-
- /* --- the following bits of info are returned as NULL-terminated strings --- */
- case SNDINFO_STR_NAME: strcpy(info->s, "Custom"); break;
- case SNDINFO_STR_CORE_FAMILY: strcpy(info->s, "None"); break;
- case SNDINFO_STR_CORE_VERSION: strcpy(info->s, "1.0"); break;
- case SNDINFO_STR_CORE_FILE: strcpy(info->s, __FILE__); break;
- case SNDINFO_STR_CORE_CREDITS: strcpy(info->s, "Copyright Nicola Salmoria and the MAME Team"); break;
- }
-}
-