6 #include <mos/aud/buffer.hpp> 7 #include <mos/aud/stream.hpp> 8 #include <unordered_map> 15 using Buffer_map = std::unordered_map<std::string, Shared_buffer>;
16 using Buffer_pair = std::pair<std::string, Shared_buffer>;
28 auto audio_buffer(
const std::filesystem::path &path) -> Shared_buffer;
37 auto directory()
const -> std::filesystem::path;
40 const std::string directory_;
Cache for heavy audio assets.
Definition: assets.hpp:13
auto audio_buffer(const std::filesystem::path &path) -> Shared_buffer
Loads an *.ogg file into a buffer and caches it.
auto clear_unused() -> void
Remove unused buffers.
auto directory() const -> std::filesystem::path
Directory of assets.
auto clear() -> void
Remove all buffers.
Definition: filter.hpp:13