fix loaded sound banks and generating streamed sound banks

This commit is contained in:
Alex
2024-02-02 16:48:23 -05:00
parent 386f941d61
commit 9254e25b22
3 changed files with 53 additions and 17 deletions

View File

@ -16,8 +16,8 @@ public:
SoundBankWriter& operator=(const SoundBankWriter& other) = default;
SoundBankWriter& operator=(SoundBankWriter&& other) noexcept = default;
virtual void AddSound(const std::string& soundFilePath, unsigned int soundId) = 0;
virtual bool Write() = 0;
virtual void AddSound(const std::string& soundFilePath, unsigned int soundId, bool looping = false, bool streamed = false) = 0;
virtual std::int64_t Write() = 0;
static std::unique_ptr<SoundBankWriter> Create(const std::string& fileName, std::ostream& stream, ISearchPath* assetSearchPath);