void DSP_Uninit(void) { DSP_Stop(); if (s_stRamBuffer != NULL) { Mfree(s_stRamBuffer); s_stRamBuffer = NULL; } s_stRamBufferSize = 0; }
void Driver_Voice_Stop() { Driver *voice = g_driverVoice; if (Driver_Voice_IsPlaying()) DSP_Stop(); if (voice->contentMalloced) { free(voice->content); voice->contentMalloced = false; } voice->content = NULL; }