src/audio/alsa/SDL_alsa_audio.c
changeset 10466 b7267e214a77
parent 10286 3b884985835c
child 10469 01b65e6fcf81
     1.1 --- a/src/audio/alsa/SDL_alsa_audio.c	Tue Oct 04 06:45:28 2016 -0700
     1.2 +++ b/src/audio/alsa/SDL_alsa_audio.c	Tue Oct 04 06:46:46 2016 -0700
     1.3 @@ -49,6 +49,7 @@
     1.4  static int (*ALSA_snd_pcm_recover) (snd_pcm_t *, int, int);
     1.5  static int (*ALSA_snd_pcm_prepare) (snd_pcm_t *);
     1.6  static int (*ALSA_snd_pcm_drain) (snd_pcm_t *);
     1.7 +static int (*ALSA_snd_pcm_drop) (snd_pcm_t *);
     1.8  static const char *(*ALSA_snd_strerror) (int);
     1.9  static size_t(*ALSA_snd_pcm_hw_params_sizeof) (void);
    1.10  static size_t(*ALSA_snd_pcm_sw_params_sizeof) (void);
    1.11 @@ -128,6 +129,7 @@
    1.12      SDL_ALSA_SYM(snd_pcm_recover);
    1.13      SDL_ALSA_SYM(snd_pcm_prepare);
    1.14      SDL_ALSA_SYM(snd_pcm_drain);
    1.15 +    SDL_ALSA_SYM(snd_pcm_drop);
    1.16      SDL_ALSA_SYM(snd_strerror);
    1.17      SDL_ALSA_SYM(snd_pcm_hw_params_sizeof);
    1.18      SDL_ALSA_SYM(snd_pcm_sw_params_sizeof);
    1.19 @@ -402,7 +404,7 @@
    1.20  ALSA_CloseDevice(_THIS)
    1.21  {
    1.22      if (this->hidden->pcm_handle) {
    1.23 -        ALSA_snd_pcm_drain(this->hidden->pcm_handle);
    1.24 +        ALSA_snd_pcm_drop(this->hidden->pcm_handle);
    1.25          ALSA_snd_pcm_close(this->hidden->pcm_handle);
    1.26      }
    1.27      SDL_free(this->hidden->mixbuf);