From 3cb1b0b087308ed61ac6f9347ee1d6ba9ca94b31 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sun, 8 Mar 2009 19:37:11 +0000 Subject: Sync with MESS --- src/emu/sound/wave.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/emu/sound/wave.c b/src/emu/sound/wave.c index 79083244c66..14c82ca06a9 100644 --- a/src/emu/sound/wave.c +++ b/src/emu/sound/wave.c @@ -59,8 +59,11 @@ static DEVICE_START( wave ) { const device_config *image = NULL; + assert( device != NULL ); + assert( device->static_config != NULL ); + #ifdef MESS - image = devtag_get_device( device->machine, device->tag ); + image = devtag_get_device( device->machine, (const char *)device->static_config ); #endif stream_create(device, 0, 1, device->machine->sample_rate, (void *)image, wave_sound_update); } @@ -76,7 +79,7 @@ DEVICE_GET_INFO( wave ) switch (state) { /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = 1; break; + case DEVINFO_INT_TOKEN_BYTES: info->i = 0; break; /* --- the following bits of info are returned as pointers to data or functions --- */ case DEVINFO_FCT_START: info->start = DEVICE_START_NAME( wave ); break; -- cgit v1.2.3