src/audio/qsa/SDL_qsa_audio.c
changeset 6352 a9bcd26e7105
parent 6138 4c64952a58fb
child 6885 700f1b25f77f
equal deleted inserted replaced
6351:8f5535d05e34 6352:a9bcd26e7105
   568         QSA_SetError("snd_pcm_channel_params", status);
   568         QSA_SetError("snd_pcm_channel_params", status);
   569         return 0;
   569         return 0;
   570     }
   570     }
   571 
   571 
   572     /* Make sure channel is setup right one last time */
   572     /* Make sure channel is setup right one last time */
   573     SDL_memset(&csetup, '\0', sizeof(csetup));
   573     SDL_memset(&csetup, 0, sizeof(csetup));
   574     if (!this->hidden->iscapture) {
   574     if (!this->hidden->iscapture) {
   575         csetup.channel = SND_PCM_CHANNEL_PLAYBACK;
   575         csetup.channel = SND_PCM_CHANNEL_PLAYBACK;
   576     } else {
   576     } else {
   577         csetup.channel = SND_PCM_CHANNEL_CAPTURE;
   577         csetup.channel = SND_PCM_CHANNEL_CAPTURE;
   578     }
   578     }