Fix typos in WAV loading and streamed sound path

This commit is contained in:
rackover 2021-04-13 00:48:01 +02:00
parent eebd0ae1da
commit d98cfb55cb
2 changed files with 3 additions and 3 deletions

View File

@ -60,8 +60,8 @@ namespace Assets
} }
sound->sound.info.channels = reader.read<short>(); sound->sound.info.channels = reader.read<short>();
sound->sound.info.samples = reader.read<int>();
sound->sound.info.rate = reader.read<int>(); sound->sound.info.rate = reader.read<int>();
sound->sound.info.samples = reader.read<int>();
sound->sound.info.block_size = reader.read<short>(); sound->sound.info.block_size = reader.read<short>();
sound->sound.info.bits = reader.read<short>(); sound->sound.info.bits = reader.read<short>();

View File

@ -313,8 +313,8 @@ namespace Assets
if (split >= 0) if (split >= 0)
{ {
directory = streamedFile.substr(split); directory = streamedFile.substr(0, split);
streamedFile = streamedFile.substr(0, split); streamedFile = streamedFile.substr(split+1);
} }
alias->soundFile->u.streamSnd.filename.info.raw.dir = builder->getAllocator()->duplicateString(directory.c_str()); alias->soundFile->u.streamSnd.filename.info.raw.dir = builder->getAllocator()->duplicateString(directory.c_str());