mirror of
https://github.com/love2d/love.git
synced 2026-08-13 17:10:54 +02:00
Fix copy on bit depth mismatch
This commit is contained in:
@@ -276,7 +276,7 @@ void SoundData::copyFrom(const SoundData *src, int srcStart, int count, int dstS
|
||||
{
|
||||
// Bit depth mismatch, use get/setSample at loop
|
||||
for (int i = 0; i < count * channels; i++)
|
||||
setSample(dstStart + i, src->getSample(srcStart + i));
|
||||
setSample(dstStart * channels + i, src->getSample(srcStart * channels + i));
|
||||
}
|
||||
else if (this->data == src->data)
|
||||
// May overlap, use memmove
|
||||
|
||||
Reference in New Issue
Block a user