diff options
Diffstat (limited to 'src/emu/sound/tms3615.c')
-rw-r--r-- | src/emu/sound/tms3615.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/emu/sound/tms3615.c b/src/emu/sound/tms3615.c index d21e998f5f9..6c9f12a468c 100644 --- a/src/emu/sound/tms3615.c +++ b/src/emu/sound/tms3615.c @@ -24,10 +24,8 @@ struct _tms_state { INLINE tms_state *get_safe_token(running_device *device) { assert(device != NULL); - assert(device->token != NULL); - assert(device->type == SOUND); - assert(sound_get_type(device) == SOUND_TMS3615); - return (tms_state *)device->token; + assert(device->type() == SOUND_TMS3615); + return (tms_state *)downcast<legacy_device_base *>(device)->token(); } @@ -92,9 +90,9 @@ static DEVICE_START( tms3615 ) { tms_state *tms = get_safe_token(device); - tms->channel = stream_create(device, 0, 2, device->clock/8, tms, tms3615_sound_update); - tms->samplerate = device->clock/8; - tms->basefreq = device->clock; + tms->channel = stream_create(device, 0, 2, device->clock()/8, tms, tms3615_sound_update); + tms->samplerate = device->clock()/8; + tms->basefreq = device->clock(); } /************************************************************************** |