Fixed an unitialized-buffer bug.
This commit is contained in:
parent
b9fe47e85d
commit
f86adf4bb5
|
@ -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…
Reference in New Issue