diff options
Diffstat (limited to 'src/emu/sound/n63701x.c')
-rw-r--r-- | src/emu/sound/n63701x.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/emu/sound/n63701x.c b/src/emu/sound/n63701x.c index 56a26029f45..5cbbb7510c4 100644 --- a/src/emu/sound/n63701x.c +++ b/src/emu/sound/n63701x.c @@ -50,10 +50,8 @@ static const int vol_table[4] = { 26, 84, 200, 258 }; INLINE namco_63701x *get_safe_token(running_device *device) { assert(device != NULL); - assert(device->token != NULL); - assert(device->type == SOUND); - assert(sound_get_type(device) == SOUND_NAMCO_63701X); - return (namco_63701x *)device->token; + assert(device->type() == SOUND_NAMCO_63701X); + return (namco_63701x *)downcast<legacy_device_base *>(device)->token(); } @@ -115,9 +113,9 @@ static DEVICE_START( namco_63701x ) { namco_63701x *chip = get_safe_token(device); - chip->rom = *device->region; + chip->rom = *device->region(); - chip->stream = stream_create(device, 0, 2, device->clock/1000, chip, namco_63701x_update); + chip->stream = stream_create(device, 0, 2, device->clock()/1000, chip, namco_63701x_update); } |