mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
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:
parent
204ae460a1
commit
7a7e064f83
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue