void sound_stop(void) { #if 0 /* forQUASI88 */ int totalsound = 0; while (Machine->drv->sound[totalsound].sound_type != 0 && totalsound < MAX_SOUND) { if (sndintf[Machine->drv->sound[totalsound].sound_type].stop) (*sndintf[Machine->drv->sound[totalsound].sound_type].stop)(); totalsound++; } #else /* forQUASI88 */ { if (sndintf[ fm_interface.sound_type ].stop) (*sndintf[ fm_interface.sound_type ].stop)(); if (sndintf[ beep_interface.sound_type ].stop) (*sndintf[ beep_interface.sound_type ].stop)(); } #endif /* forQUASI88 */ streams_sh_stop(); mixer_sh_stop(); #if 0 /* forQUASI88 */ /* free audio samples */ Machine->samples = 0; #endif /* forQUASI88 */ }
void sound_stop(void) { int totalsound = 0; while (totalsound < MAX_SOUND && Machine->drv->sound[totalsound].sound_type != 0) { if (sndintf[Machine->drv->sound[totalsound].sound_type].stop) (*sndintf[Machine->drv->sound[totalsound].sound_type].stop)(); totalsound++; } streams_sh_stop(); mixer_sh_stop(); /* free audio samples */ Machine->samples = 0; }