Fix typos in WAV loading and streamed sound path
This commit is contained in:
parent
eebd0ae1da
commit
d98cfb55cb
@ -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>();
|
||||||
|
|
||||||
|
@ -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());
|
||||||
|
Loading…
Reference in New Issue
Block a user