diff options
Diffstat (limited to 'src/emu/sound/wave.c')
-rw-r--r-- | src/emu/sound/wave.c | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/src/emu/sound/wave.c b/src/emu/sound/wave.c index b1f8f7dea27..78540a68a86 100644 --- a/src/emu/sound/wave.c +++ b/src/emu/sound/wave.c @@ -55,7 +55,7 @@ static STREAM_UPDATE( wave_sound_update ) -static SND_START( wave ) +static DEVICE_START( wave ) { const device_config *image = NULL; @@ -71,33 +71,23 @@ static SND_START( wave ) * Generic get_info **************************************************************************/ -static SND_SET_INFO( wave ) -{ - switch (state) - { - /* no parameters to set */ - } -} - - -SND_GET_INFO( wave ) +DEVICE_GET_INFO( wave ) { switch (state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ - case SNDINFO_INT_TOKEN_BYTES: info->i = 1; break; + case DEVINFO_INT_TOKEN_BYTES: info->i = 1; 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( wave ); break; - case SNDINFO_PTR_START: info->start = SND_START_NAME( wave ); break; - case SNDINFO_PTR_STOP: /* nothing */ break; - case SNDINFO_PTR_RESET: /* nothing */ break; + case DEVINFO_FCT_START: info->start = DEVICE_START_NAME( wave ); break; + case DEVINFO_FCT_STOP: /* nothing */ break; + case DEVINFO_FCT_RESET: /* nothing */ break; /* --- the following bits of info are returned as NULL-terminated strings --- */ - case SNDINFO_STR_NAME: strcpy(info->s, "Cassette"); break; - case SNDINFO_STR_CORE_FAMILY: strcpy(info->s, "Cassette"); 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 The MESS Team"); break; + case DEVINFO_STR_NAME: strcpy(info->s, "Cassette"); break; + case DEVINFO_STR_FAMILY: strcpy(info->s, "Cassette"); break; + case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; + case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; + case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright The MESS Team"); break; } } |