src/mess/audio/gmaster.c
| r4360 | r4361 | |
| 30 | 30 | |
| 31 | 31 | |
| 32 | 32 | int 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")); |
| 35 | 35 | |
| 36 | | switch (ioline) |
| 36 | switch (ioline) |
| 37 | 37 | { |
| 38 | 38 | case UPD7810_TO: |
| 39 | 39 | stream_update(token->mixer_channel); |
| r4360 | r4361 | |
| 42 | 42 | default: |
| 43 | 43 | logerror("io changed %d %.2x\n",ioline, state); |
| 44 | 44 | break; |
| 45 | | } |
| 46 | | return 0; |
| 45 | } |
| 46 | return 0; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | |
src/mess/drivers/gmaster.c
| r4360 | r4361 | |
| 226 | 226 | MDRV_PALETTE_INIT(gmaster) |
| 227 | 227 | MDRV_DEFAULT_LAYOUT(layout_gmaster) |
| 228 | 228 | |
| 229 | | MDRV_SPEAKER_STANDARD_MONO("gmaster") |
| 229 | MDRV_SPEAKER_STANDARD_MONO("speaker") |
| 230 | 230 | MDRV_SOUND_ADD("custom", GMASTER, 0) |
| 231 | | MDRV_SOUND_ROUTE(0, "gmaster", 0.50) |
| 231 | MDRV_SOUND_ROUTE(0, "speaker", 0.50) |
| 232 | 232 | |
| 233 | 233 | MDRV_CARTSLOT_ADD("cart") |
| 234 | 234 | MACHINE_DRIVER_END |