We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4db63e3 commit 97e2951Copy full SHA for 97e2951
src/audio/alsa/SDL_alsa_audio.c
@@ -484,12 +484,6 @@ static void ALSA_CloseDevice(SDL_AudioDevice *device)
484
{
485
if (device->hidden) {
486
if (device->hidden->pcm) {
487
- // Wait for the submitted audio to drain. ALSA_snd_pcm_drop() can hang, so don't use that.
488
- int delay = ((device->sample_frames * 1000) / device->spec.freq) * 2;
489
- if (delay > 100) {
490
- delay = 100;
491
- }
492
- SDL_Delay(delay);
493
ALSA_snd_pcm_close(device->hidden->pcm);
494
}
495
SDL_free(device->hidden->mixbuf);
0 commit comments