2019-07-30 00:29:23 +02:00
|
|
|
#pragma once
|
2019-08-03 18:14:58 +02:00
|
|
|
#include "StereoBuffer.h"
|
2019-07-30 00:29:23 +02:00
|
|
|
#include <filesystem>
|
|
|
|
|
#include <map>
|
|
|
|
|
#include <string_view>
|
|
|
|
|
|
|
|
|
|
namespace sfz
|
|
|
|
|
{
|
|
|
|
|
class FilePool
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
FilePool() = default;
|
|
|
|
|
private:
|
|
|
|
|
std::filesystem::path rootDirectory;
|
2019-08-03 18:14:58 +02:00
|
|
|
std::map<std::string_view, std::shared_ptr<StereoBuffer<float>>> preloadedData;
|
2019-07-30 00:29:23 +02:00
|
|
|
};
|
|
|
|
|
}
|