SDL_CloseAudioDevice had the wrong function signature.