mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 08:39:45 +00:00
ZVISION: Fix cmdRawToWav on BE systems
This commit is contained in:
parent
4931aee954
commit
c823a6e825
@ -138,6 +138,10 @@ bool Console::cmdRawToWav(int argc, const char **argv) {
|
||||
output.writeUint32LE(file.size() * 2);
|
||||
int16 *buffer = new int16[file.size()];
|
||||
audioStream->readBuffer(buffer, file.size());
|
||||
#ifndef SCUMM_LITTLE_ENDIAN
|
||||
for (int i = 0; i < file.size(); ++i)
|
||||
buffer[i] = TO_LE_16(buffer[i]);
|
||||
#endif
|
||||
output.write(buffer, file.size() * 2);
|
||||
|
||||
delete[] buffer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user