forked from len0rd/rockbox
TDSpeed: Fix crackling on some systems
Use memmove instead of memcpy for overlapping copy, fixes crackling in sims and warble on my system. Native targets seem to have been unaffected. Change-Id: I265d4ce373e224581bd2f5ba15c75b473ec231f2
This commit is contained in:
parent
4b5348ba04
commit
2202ed3535
1 changed files with 2 additions and 2 deletions
|
@ -336,8 +336,8 @@ skip:;
|
||||||
|
|
||||||
for (int ch = 0; ch < st->channels; ch++)
|
for (int ch = 0; ch < st->channels; ch++)
|
||||||
{
|
{
|
||||||
memcpy(st->ovl_buff[ch], buf_in[ch] + i,
|
memmove(st->ovl_buff[ch], buf_in[ch] + i,
|
||||||
st->ovl_size * sizeof(int32_t));
|
st->ovl_size * sizeof(int32_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (consumed)
|
if (consumed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue