diff options
Diffstat (limited to 'src/emu/sound/st0016.c')
-rw-r--r-- | src/emu/sound/st0016.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/emu/sound/st0016.c b/src/emu/sound/st0016.c index 633fb80b18d..e91562dce9d 100644 --- a/src/emu/sound/st0016.c +++ b/src/emu/sound/st0016.c @@ -22,10 +22,8 @@ struct _st0016_state INLINE st0016_state *get_safe_token(running_device *device) { assert(device != NULL); - assert(device->token != NULL); - assert(device->type == SOUND); - assert(sound_get_type(device) == SOUND_ST0016); - return (st0016_state *)device->token; + assert(device->type() == SOUND_ST0016); + return (st0016_state *)downcast<legacy_device_base *>(device)->token(); } @@ -140,7 +138,7 @@ static STREAM_UPDATE( st0016_update ) static DEVICE_START( st0016 ) { - const st0016_interface *intf = (const st0016_interface *)device->baseconfig().static_config; + const st0016_interface *intf = (const st0016_interface *)device->baseconfig().static_config(); st0016_state *info = get_safe_token(device); info->sound_ram = intf->p_soundram; |