void stop_channel(int chn) { if (chn == 0) { aica_stop(0); aica_stop(1); } else { aica_stop(chn); } }
static void DCAUD_CloseAudio(_THIS) { aica_stop(0); if (this->spec.channels==2) aica_stop(1); if ( this->hidden->mixbuf != NULL ) { SDL_FreeAudioMem(this->hidden->mixbuf); this->hidden->mixbuf = NULL; } }
static void audio_end() { aud->playing = 0; aica_stop(0); aica_stop(1); /* Free global buffers */ /* if (sep_buffer[0]) { free(sep_buffer[0]); sep_buffer[0] = NULL; free(sep_buffer[1]); sep_buffer[1] = NULL; }*/ }
static void DCAUD_CloseDevice(_THIS) { if (this->hidden != NULL) { aica_stop(0); if (this->spec.channels == 2) { aica_stop(1); } if (this->hidden->mixbuf != NULL) { SDL_FreeAudioMem(this->hidden->mixbuf); this->hidden->mixbuf = NULL; } SDL_free(this->hidden); this->hidden = NULL; /* !!! FIXME: is there a reverse of spu_init()? */ } }