Browse code

update for C++17 compliance, update to latest 2sf, add WINE cross-compile makefiles

Adam Higerd authored on 2021/02/11 15:36:17
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,16 @@
1
+#ifndef TWOSF2WAV_SAMPLECACHE_H
2
+#define TWOSF2WAV_SAMPLECACHE_H
3
+
4
+#include <unordered_map>
5
+#include "sampledata.h"
6
+
7
+class SampleCache {
8
+public:
9
+  const SampleData& getSample(uint32_t baseAddr, uint16_t loopStartWords, uint32_t loopLengthWords, SampleData::Format format);
10
+  void clear();
11
+
12
+private:
13
+  std::unordered_map<uint64_t, SampleData> samples;
14
+};
15
+
16
+#endif