alsaloop: samplerate - fix the wrong pointer operation

It seems that the warnings fix introduced a regression.

BugLink: https://github.com/alsa-project/alsa-utils/issues/85
Fixes: cc46d02 ("alsaloop: pcmjob - fix few warnings")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-03-31 16:38:37 +02:00
parent 204ae460a1
commit 7a7e064f83

View file

@ -556,13 +556,13 @@ static void buf_add_src(struct loopback *loop)
if (capt->format == SND_PCM_FORMAT_S32) if (capt->format == SND_PCM_FORMAT_S32)
src_int_to_float_array((int *)(capt->buf + src_int_to_float_array((int *)(capt->buf +
pos1 * capt->frame_size), pos1 * capt->frame_size),
(void *)loop->src_data.data_in + (float *)loop->src_data.data_in +
pos * capt->channels, pos * capt->channels,
count1 * capt->channels); count1 * capt->channels);
else else
src_short_to_float_array((short *)(capt->buf + src_short_to_float_array((short *)(capt->buf +
pos1 * capt->frame_size), pos1 * capt->frame_size),
(void *)loop->src_data.data_in + (float *)loop->src_data.data_in +
pos * capt->channels, pos * capt->channels,
count1 * capt->channels); count1 * capt->channels);
count -= count1; count -= count1;