mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-09 00:11:17 +12:00
fix loop
This commit is contained in:
parent
57ee2413e7
commit
c8b4e48120
1 changed files with 2 additions and 2 deletions
|
@ -21,10 +21,10 @@ sint16* BootSoundReader::getSamples()
|
||||||
if (read % sizeof(sint16be) != 0)
|
if (read % sizeof(sint16be) != 0)
|
||||||
cemu_assert_suspicious();
|
cemu_assert_suspicious();
|
||||||
|
|
||||||
std::copy_n(bufferBE.begin(), read / sizeof(sint16be), buffer.begin() + totalRead);
|
std::copy_n(bufferBE.begin(), read / sizeof(sint16be), buffer.begin() + (totalRead / sizeof(sint16)));
|
||||||
totalRead += read;
|
totalRead += read;
|
||||||
if (totalRead < blockSize)
|
if (totalRead < blockSize)
|
||||||
fsc_setFileSeek(bootsndFile, loopPoint * 4);
|
fsc_setFileSeek(bootsndFile, 8 + loopPoint * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
return buffer.data();
|
return buffer.data();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue