diff --git a/src/libsound/sound_alsa.c b/src/libsound/sound_alsa.c index f2f123e..5b5e4eb 100644 --- a/src/libsound/sound_alsa.c +++ b/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 */