Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Minor ALSA tweaks (include-once macro name, len for memset() more cle…

…ar).
  • Loading branch information
icculus committed Jul 7, 2013
1 parent eb83b80 commit 12026a96147d468aed40947897d430da4a00b05c
Showing with 4 additions and 4 deletions.
  1. +1 −1 src/audio/alsa/SDL_alsa_audio.c
  2. +3 −3 src/audio/alsa/SDL_alsa_audio.h
@@ -643,7 +643,7 @@ ALSA_OpenDevice(_THIS, const char *devname, int iscapture)
ALSA_CloseDevice(this);
return SDL_OutOfMemory();
}
SDL_memset(this->hidden->mixbuf, this->spec.silence, this->spec.size);
SDL_memset(this->hidden->mixbuf, this->spec.silence, this->hidden->mixlen);

/* Switch to blocking mode for playback */
ALSA_snd_pcm_nonblock(pcm_handle, 0);
@@ -20,8 +20,8 @@
*/
#include "SDL_config.h"

#ifndef _ALSA_PCM_audio_h
#define _ALSA_PCM_audio_h
#ifndef _SDL_ALSA_audio_h
#define _SDL_ALSA_audio_h

#include <alsa/asoundlib.h>

@@ -40,6 +40,6 @@ struct SDL_PrivateAudioData
int mixlen;
};

#endif /* _ALSA_PCM_audio_h */
#endif /* _SDL_ALSA_audio_h */

/* vi: set ts=4 sw=4 expandtab: */

0 comments on commit 12026a9

Please sign in to comment.