This function is a legacy means of closing the audio device.
void SDL_CloseAudio(void);
This function is equivalent to calling...
1); SDL_CloseAudioDevice(
...and is only useful if you used the legacy SDL_OpenAudio() function.
This function is available since SDL 2.0.0.
extern SDL_AudioSpec want;
if (SDL_OpenAudio(&want, NULL) == 0) {
0);
SDL_PauseAudio(5000); // let audio callback run for 5 seconds.
SDL_Delay(
SDL_CloseAudio(); }