17 lines
303 B
C
17 lines
303 B
C
|
|
#pragma once
|
||
|
|
#include "AudioBuffer.h"
|
||
|
|
#include <filesystem>
|
||
|
|
#include <map>
|
||
|
|
#include <string_view>
|
||
|
|
|
||
|
|
namespace sfz
|
||
|
|
{
|
||
|
|
class FilePool
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
FilePool() = default;
|
||
|
|
private:
|
||
|
|
std::filesystem::path rootDirectory;
|
||
|
|
std::map<std::string_view, std::shared_ptr<AudioBuffer<float>>> preloadedData;
|
||
|
|
};
|
||
|
|
}
|