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 1fd4703 commit 4ae517eCopy full SHA for 4ae517e
src/audio/alsa/SDL_alsa_audio.c
@@ -461,12 +461,6 @@ static void ALSA_CloseDevice(SDL_AudioDevice *device)
461
{
462
if (device->hidden) {
463
if (device->hidden->pcm) {
464
- // Wait for the submitted audio to drain. ALSA_snd_pcm_drop() can hang, so don't use that.
465
- int delay = ((device->sample_frames * 1000) / device->spec.freq) * 2;
466
- if (delay > 100) {
467
- delay = 100;
468
- }
469
- SDL_Delay(delay);
470
ALSA_snd_pcm_close(device->hidden->pcm);
471
}
472
SDL_free(device->hidden->mixbuf);
0 commit comments