Commit 639ee4ab authored by Rafaël Carré's avatar Rafaël Carré

opensles: fix static noise at 44.1kHz

parent 7f4f09b5
......@@ -401,6 +401,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
/* XXX: rounding shouldn't affect us at normal sampling rate */
sys->buf_unit_size = OPENSLES_BUFLEN * fmt->i_rate * 2 /* channels */ * 2 /* bps */ / 1000;
sys->buf_unit_size = (sys->buf_unit_size + 3) & ~3; // align on sample boundary
sys->buf = malloc(OPENSLES_BUFFERS * sys->buf_unit_size);
if (!sys->buf)
goto error;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment