Previous 15994 Revisions Next

r4361 Saturday 28th February, 2009 at 06:22:34 UTC by Robbbert
[GMASTER] Fixed assert with the sound.
[src/mess/audio]gmaster.c
[src/mess/drivers]gmaster.c

src/mess/audio/gmaster.c
r4360r4361
3030
3131
3232int gmaster_io_callback(const device_config *device, int ioline, int state)
33{
34   gmaster_sound *token = get_token(device);
33{   /* comes across with cpu device - need to use sound device */
34   gmaster_sound *token = get_token((device_config*)devtag_get_device(device->machine, SOUND, "custom"));
3535
36    switch (ioline)
36   switch (ioline)
3737   {
3838      case UPD7810_TO:
3939         stream_update(token->mixer_channel);
r4360r4361
4242      default:
4343         logerror("io changed %d %.2x\n",ioline, state);
4444         break;
45    }
46    return 0;
45   }
46   return 0;
4747}
4848
4949
src/mess/drivers/gmaster.c
r4360r4361
226226   MDRV_PALETTE_INIT(gmaster)
227227   MDRV_DEFAULT_LAYOUT(layout_gmaster)
228228
229   MDRV_SPEAKER_STANDARD_MONO("gmaster")
229   MDRV_SPEAKER_STANDARD_MONO("speaker")
230230   MDRV_SOUND_ADD("custom", GMASTER, 0)
231   MDRV_SOUND_ROUTE(0, "gmaster", 0.50)
231   MDRV_SOUND_ROUTE(0, "speaker", 0.50)
232232
233233   MDRV_CARTSLOT_ADD("cart")
234234MACHINE_DRIVER_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team