summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/sound/sid6581.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/sound/sid6581.c')
-rw-r--r--src/emu/sound/sid6581.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/sound/sid6581.c b/src/emu/sound/sid6581.c
index 2eb966e5b91..b7861311474 100644
--- a/src/emu/sound/sid6581.c
+++ b/src/emu/sound/sid6581.c
@@ -15,8 +15,8 @@
static SID6581 *get_sid(running_device *device)
{
assert(device != NULL);
- assert((sound_get_type(device) == SOUND_SID6581) || (sound_get_type(device) == SOUND_SID8580));
- return (SID6581 *) device->token;
+ assert((device->type() == SOUND_SID6581) || (device->type() == SOUND_SID8580));
+ return (SID6581 *) downcast<legacy_device_base *>(device)->token();
}
@@ -32,12 +32,12 @@ static STREAM_UPDATE( sid_update )
static void sid_start(running_device *device, SIDTYPE sidtype)
{
SID6581 *sid = get_sid(device);
- const sid6581_interface *iface = (const sid6581_interface*) device->baseconfig().static_config;
+ const sid6581_interface *iface = (const sid6581_interface*) device->baseconfig().static_config();
sid->device = device;
sid->mixer_channel = stream_create (device, 0, 1, device->machine->sample_rate, (void *) sid, sid_update);
sid->PCMfreq = device->machine->sample_rate;
- sid->clock = device->clock;
+ sid->clock = device->clock();
sid->ad_read = iface ? iface->ad_read : NULL;
sid->type = sidtype;