| Previous | 15994 Revisions | Next |
| r7827 Friday 16th April, 2010 at 08:57:13 UTC by Miodrag Milanović |
|---|
| More proper fixes for asserts + SNES assert fix |
| [src/emu/sound] | mos6560.c |
| [src/mame/audio] | snes_snd.c |
| [src/mess/audio] | ted7360.c |
| r7826 | r7827 | |
|---|---|---|
| 234 | 234 | INLINE snes_sound_state *get_safe_token( running_device *device ) |
| 235 | 235 | { |
| 236 | 236 | assert(device != NULL); |
| 237 | assert(device->token != NULL); | |
| 238 | assert(device->type == SNES_SPC); | |
| 237 | assert(device->token != NULL); | |
| 238 | assert(device->type == SOUND); | |
| 239 | assert(sound_get_type(device) == SNES_SPC); | |
| 239 | 240 | |
| 240 | 241 | return (snes_sound_state *)device->token; |
| 241 | 242 | } |
| r7826 | r7827 | |
|---|---|---|
| 125 | 125 | assert(device != NULL); |
| 126 | 126 | assert(device->token != NULL); |
| 127 | 127 | assert(device->type == SOUND); |
| 128 | assert(sound_get_type(device) == MOS656X); | |
| 128 | 129 | |
| 129 | 130 | return (mos6560_state *)device->token; |
| 130 | 131 | } |
| r7826 | r7827 | |
| 132 | 133 | INLINE const mos6560_interface *get_interface( running_device *device ) |
| 133 | 134 | { |
| 134 | 135 | assert(device != NULL); |
| 135 | assert((device->type == SOUND)); | |
| 136 | assert(device->type == SOUND); | |
| 137 | assert(sound_get_type(device) == MOS656X); | |
| 138 | ||
| 136 | 139 | return (const mos6560_interface *) device->baseconfig().static_config; |
| 137 | 140 | } |
| 138 | 141 |
| r7826 | r7827 | |
|---|---|---|
| 502 | 502 | assert(device != NULL); |
| 503 | 503 | assert(device->token != NULL); |
| 504 | 504 | assert(device->type == SOUND); |
| 505 | assert(sound_get_type(device) == TED7360); | |
| 505 | 506 | |
| 506 | 507 | return (ted7360_state *)device->token; |
| 507 | 508 | } |
| r7826 | r7827 | |
| 510 | 511 | { |
| 511 | 512 | assert(device != NULL); |
| 512 | 513 | assert(device->type == SOUND); |
| 514 | assert(sound_get_type(device) == TED7360); | |
| 515 | ||
| 513 | 516 | return (const ted7360_interface *) device->baseconfig().static_config; |
| 514 | 517 | } |
| 515 | 518 |
| Previous | 15994 Revisions | Next |