mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
fixed compile warnings.
This commit is contained in:
parent
494f3e66e4
commit
965222c3d9
4 changed files with 18 additions and 11 deletions
|
|
@ -2168,9 +2168,10 @@ int snd_pcm_area_silence(const snd_pcm_channel_area_t *dst_area, snd_pcm_uframes
|
|||
silence = snd_pcm_format_silence_64(format);
|
||||
if (dst_area->step == (unsigned int) width) {
|
||||
unsigned int dwords = samples * width / 64;
|
||||
u_int64_t *dstp = (u_int64_t *)dst;
|
||||
samples -= dwords * 64 / width;
|
||||
while (dwords-- > 0)
|
||||
*((u_int64_t*)dst)++ = silence;
|
||||
*dstp++ = silence;
|
||||
if (samples == 0)
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue