mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-02-22 12:47:14 +01:00
fix loop
This commit is contained in:
parent
57ee2413e7
commit
c8b4e48120
@ -21,10 +21,10 @@ sint16* BootSoundReader::getSamples()
|
||||
if (read % sizeof(sint16be) != 0)
|
||||
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;
|
||||
if (totalRead < blockSize)
|
||||
fsc_setFileSeek(bootsndFile, loopPoint * 4);
|
||||
fsc_setFileSeek(bootsndFile, 8 + loopPoint * 4);
|
||||
}
|
||||
|
||||
return buffer.data();
|
||||
|
Loading…
x
Reference in New Issue
Block a user