Minor ALSA tweaks (include-once macro name, len for memset() more clear).

--HG--
extra : rebase_source : 44c8b456ce5867d127b8e307c7854d1bab882a50
This commit is contained in:
Ryan C. Gordon 2013-07-07 02:03:50 -04:00
parent c9acdd87a7
commit 13b57b17fd
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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: */