Fix bug in pcm-alsa.c

I introduced the bug by mistake when adding support for 32-bit sample rate.

Change-Id: I5ac53917c95327672284707b69c59bb98d1aecd7
This commit is contained in:
Amaury Pouly 2017-09-22 11:21:35 +02:00
parent 638eaeb884
commit 9c83e07d8b

View file

@ -287,7 +287,7 @@ static bool fill_frames(void)
else
{
/* Rockbox and PCM have same format: memcopy */
memcpy(&frames[2*(period_size-frames_left)], pcm_data, copy_n);
memcpy(&frames[2*(period_size-frames_left)], pcm_data, copy_n * 4);
}
pcm_data += copy_n*4;
pcm_size -= copy_n*4;