Fixed an unitialized-buffer bug.

pull/1/head
Andreas Eversberg 4 years ago
parent b9fe47e85d
commit f86adf4bb5
  1. 3
      src/libsound/sound_alsa.c

@ -363,6 +363,9 @@ int sound_read(void *inst, sample_t **samples, int num, int channels, double *rf
int in, rc;
int i, ii;
/* make valgrind happy, because snd_pcm_readi() does not seem to initally fill buffer with values */
memset(buff, 0, sizeof(buff));
/* get samples in rx buffer */
in = snd_pcm_avail(sound->chandle);
/* if not more than KEEP_FRAMES frames available, try next time */

Loading…
Cancel
Save