diff options
author | Nathan Woods <npwoods@mess.org> | 2009-03-08 19:37:11 +0000 |
---|---|---|
committer | Nathan Woods <npwoods@mess.org> | 2009-03-08 19:37:11 +0000 |
commit | 3cb1b0b087308ed61ac6f9347ee1d6ba9ca94b31 (patch) | |
tree | 6a79b29b2b803c5f5ab3ac4223b41fffc9aed105 | |
parent | 5d67007d0bb7313efebc445198ea2aa6463cedb1 (diff) |
Sync with MESS
-rw-r--r-- | src/emu/sound/wave.c | 7 |
1 files 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; |