summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/cem3394.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/cem3394.c')
-rw-r--r--src/emu/sound/cem3394.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/sound/cem3394.c b/src/emu/sound/cem3394.c
index 89fdcb45f1d..7a8ddd6e4f5 100644
--- a/src/emu/sound/cem3394.c
+++ b/src/emu/sound/cem3394.c
@@ -141,10 +141,8 @@ struct _cem3394_state
INLINE cem3394_state *get_safe_token(running_device *device)
{
assert(device != NULL);
- assert(device->token != NULL);
- assert(device->type == SOUND);
- assert(sound_get_type(device) == SOUND_CEM3394);
- return (cem3394_state *)device->token;
+ assert(device->type() == SOUND_CEM3394);
+ return (cem3394_state *)downcast<legacy_device_base *>(device)->token();
}
@@ -327,7 +325,7 @@ static STREAM_UPDATE( cem3394_update )
static DEVICE_START( cem3394 )
{
- const cem3394_interface *intf = (const cem3394_interface *)device->baseconfig().static_config;
+ const cem3394_interface *intf = (const cem3394_interface *)device->baseconfig().static_config();
cem3394_state *chip = get_safe_token(device);
chip->device = device;