#ifndef TWOSF2WAV_SAMPLECACHE_H #define TWOSF2WAV_SAMPLECACHE_H #include #include "sampledata.h" class SampleCache { public: const SampleData& getSample(uint32_t baseAddr, uint16_t loopStartWords, uint32_t loopLengthWords, SampleData::Format format); void clear(); private: std::unordered_map samples; }; #endif