mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-24 21:57:54 -05:00
26 lines
854 B
C++
26 lines
854 B
C++
#pragma once
|
|
#include "SearchPath/ISearchPath.h"
|
|
|
|
#include <filesystem>
|
|
#include <memory>
|
|
#include <ostream>
|
|
|
|
class SoundBankWriter
|
|
{
|
|
public:
|
|
SoundBankWriter() = default;
|
|
virtual ~SoundBankWriter() = default;
|
|
|
|
SoundBankWriter(const SoundBankWriter& other) = default;
|
|
SoundBankWriter(SoundBankWriter&& other) noexcept = default;
|
|
SoundBankWriter& operator=(const SoundBankWriter& other) = default;
|
|
SoundBankWriter& operator=(SoundBankWriter&& other) noexcept = default;
|
|
|
|
virtual void AddSound(const std::string& soundFilePath, unsigned int soundId, bool looping = false, bool streamed = false) = 0;
|
|
virtual bool Write(size_t& dataSize) = 0;
|
|
|
|
static std::unique_ptr<SoundBankWriter> Create(const std::string& fileName, std::ostream& stream, ISearchPath& assetSearchPath);
|
|
|
|
static std::filesystem::path OutputPath;
|
|
};
|