Minor ALSA tweaks (include-once macro name, len for memset() more clear).
authorRyan C. Gordon
Sun, 07 Jul 2013 02:03:50 -0400
changeset 7365a3fc9175306d
parent 7364 e21bd6987b86
child 7366 38c6f26bb010
Minor ALSA tweaks (include-once macro name, len for memset() more clear).
src/audio/alsa/SDL_alsa_audio.c
src/audio/alsa/SDL_alsa_audio.h
     1.1 --- a/src/audio/alsa/SDL_alsa_audio.c	Sat Jul 06 21:17:09 2013 -0700
     1.2 +++ b/src/audio/alsa/SDL_alsa_audio.c	Sun Jul 07 02:03:50 2013 -0400
     1.3 @@ -643,7 +643,7 @@
     1.4          ALSA_CloseDevice(this);
     1.5          return SDL_OutOfMemory();
     1.6      }
     1.7 -    SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
     1.8 +    SDL_memset(this->hidden->mixbuf, this->spec.silence, this->hidden->mixlen);
     1.9  
    1.10      /* Switch to blocking mode for playback */
    1.11      ALSA_snd_pcm_nonblock(pcm_handle, 0);
     2.1 --- a/src/audio/alsa/SDL_alsa_audio.h	Sat Jul 06 21:17:09 2013 -0700
     2.2 +++ b/src/audio/alsa/SDL_alsa_audio.h	Sun Jul 07 02:03:50 2013 -0400
     2.3 @@ -20,8 +20,8 @@
     2.4  */
     2.5  #include "SDL_config.h"
     2.6  
     2.7 -#ifndef _ALSA_PCM_audio_h
     2.8 -#define _ALSA_PCM_audio_h
     2.9 +#ifndef _SDL_ALSA_audio_h
    2.10 +#define _SDL_ALSA_audio_h
    2.11  
    2.12  #include <alsa/asoundlib.h>
    2.13  
    2.14 @@ -40,6 +40,6 @@
    2.15      int mixlen;
    2.16  };
    2.17  
    2.18 -#endif /* _ALSA_PCM_audio_h */
    2.19 +#endif /* _SDL_ALSA_audio_h */
    2.20  
    2.21  /* vi: set ts=4 sw=4 expandtab: */