mirror of
https://github.com/encounter/SDL.git
synced 2025-12-10 14:07:50 +00:00
Fix bug 4746 - introduce SDL_zeroa macro.
This commit is contained in:
@@ -948,7 +948,7 @@ SDL_AudioInit(const char *driver_name)
|
||||
}
|
||||
|
||||
SDL_zero(current_audio);
|
||||
SDL_zero(open_devices);
|
||||
SDL_zeroa(open_devices);
|
||||
|
||||
/* Select the proper audio driver */
|
||||
if (driver_name == NULL) {
|
||||
@@ -1608,7 +1608,7 @@ SDL_AudioQuit(void)
|
||||
SDL_DestroyMutex(current_audio.detectionLock);
|
||||
|
||||
SDL_zero(current_audio);
|
||||
SDL_zero(open_devices);
|
||||
SDL_zeroa(open_devices);
|
||||
|
||||
#ifdef HAVE_LIBSAMPLERATE_H
|
||||
UnloadLibSampleRate();
|
||||
|
||||
@@ -915,7 +915,7 @@ SDL_BuildAudioCVT(SDL_AudioCVT * cvt,
|
||||
cvt->dst_format = dst_fmt;
|
||||
cvt->needed = 0;
|
||||
cvt->filter_index = 0;
|
||||
SDL_zero(cvt->filters);
|
||||
SDL_zeroa(cvt->filters);
|
||||
cvt->len_mult = 1;
|
||||
cvt->len_ratio = 1.0;
|
||||
cvt->rate_incr = ((double) dst_rate) / ((double) src_rate);
|
||||
|
||||
@@ -647,7 +647,7 @@ MS_ADPCM_Decode(WaveFile *file, Uint8 **audio_buf, Uint32 *audio_len)
|
||||
MS_ADPCM_ChannelState cstate[2];
|
||||
|
||||
SDL_zero(state);
|
||||
SDL_zero(cstate);
|
||||
SDL_zeroa(cstate);
|
||||
|
||||
if (chunk->size != chunk->length) {
|
||||
/* Could not read everything. Recalculate number of sample frames. */
|
||||
|
||||
Reference in New Issue
Block a user