From d98cfb55cbdf1022530b9ec34338694907090a71 Mon Sep 17 00:00:00 2001 From: rackover Date: Tue, 13 Apr 2021 00:48:01 +0200 Subject: [PATCH] Fix typos in WAV loading and streamed sound path --- src/Components/Modules/AssetInterfaces/ILoadedSound.cpp | 2 +- src/Components/Modules/AssetInterfaces/Isnd_alias_list_t.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Modules/AssetInterfaces/ILoadedSound.cpp b/src/Components/Modules/AssetInterfaces/ILoadedSound.cpp index 376a21d9..9dc06fb1 100644 --- a/src/Components/Modules/AssetInterfaces/ILoadedSound.cpp +++ b/src/Components/Modules/AssetInterfaces/ILoadedSound.cpp @@ -60,8 +60,8 @@ namespace Assets } sound->sound.info.channels = reader.read(); - sound->sound.info.samples = reader.read(); sound->sound.info.rate = reader.read(); + sound->sound.info.samples = reader.read(); sound->sound.info.block_size = reader.read(); sound->sound.info.bits = reader.read(); diff --git a/src/Components/Modules/AssetInterfaces/Isnd_alias_list_t.cpp b/src/Components/Modules/AssetInterfaces/Isnd_alias_list_t.cpp index 2626abe0..02966b04 100644 --- a/src/Components/Modules/AssetInterfaces/Isnd_alias_list_t.cpp +++ b/src/Components/Modules/AssetInterfaces/Isnd_alias_list_t.cpp @@ -313,8 +313,8 @@ namespace Assets if (split >= 0) { - directory = streamedFile.substr(split); - streamedFile = streamedFile.substr(0, split); + directory = streamedFile.substr(0, split); + streamedFile = streamedFile.substr(split+1); } alias->soundFile->u.streamSnd.filename.info.raw.dir = builder->getAllocator()->duplicateString(directory.c_str());