mirror of
https://github.com/yawut/SDL.git
synced 2026-08-27 19:24:30 -05:00
Minor ALSA tweaks (include-once macro name, len for memset() more clear).
This commit is contained in:
@@ -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: */
|
||||
|
||||
Reference in New Issue
Block a user