diff --git a/alsaloop/pcmjob.c b/alsaloop/pcmjob.c index 01e0199..4efdd63 100644 --- a/alsaloop/pcmjob.c +++ b/alsaloop/pcmjob.c @@ -556,13 +556,13 @@ static void buf_add_src(struct loopback *loop) if (capt->format == SND_PCM_FORMAT_S32) src_int_to_float_array((int *)(capt->buf + pos1 * capt->frame_size), - (void *)loop->src_data.data_in + + (float *)loop->src_data.data_in + pos * capt->channels, count1 * capt->channels); else src_short_to_float_array((short *)(capt->buf + pos1 * capt->frame_size), - (void *)loop->src_data.data_in + + (float *)loop->src_data.data_in + pos * capt->channels, count1 * capt->channels); count -= count1;