comparison libao2/ao_alsa5.c @ 3700:91f801a94a59

memset is more portable than bzero ("BSD"ism)
author pl
date Mon, 24 Dec 2001 10:35:43 +0000
parents 981a9e5118ce
children d141f1e9cc36
comparison
equal deleted inserted replaced
3699:5002156efd4f 3700:91f801a94a59
171 printf("alsa-init: %d soundcard%s found, using: %s\n", cards, 171 printf("alsa-init: %d soundcard%s found, using: %s\n", cards,
172 (cards == 1) ? "" : "s", info.name); 172 (cards == 1) ? "" : "s", info.name);
173 173
174 if (info.flags & SND_PCM_INFO_PLAYBACK) 174 if (info.flags & SND_PCM_INFO_PLAYBACK)
175 { 175 {
176 bzero(&chninfo, sizeof(chninfo)); 176 memset(&chninfo, 0, sizeof(chninfo));
177 chninfo.channel = SND_PCM_CHANNEL_PLAYBACK; 177 chninfo.channel = SND_PCM_CHANNEL_PLAYBACK;
178 if ((err = snd_pcm_channel_info(alsa_handler, &chninfo)) < 0) 178 if ((err = snd_pcm_channel_info(alsa_handler, &chninfo)) < 0)
179 { 179 {
180 printf("alsa-init: pcm channel info error: %s\n", snd_strerror(err)); 180 printf("alsa-init: pcm channel info error: %s\n", snd_strerror(err));
181 return(0); 181 return(0);