| 4 | static std::vector<uint8_t> ir; |
| 5 | |
| 6 | static void initIR() { |
| 7 | if (!ir.empty()) |
| 8 | return; |
| 9 | |
| 10 | try { |
| 11 | ir = system::readFile(asset::plugin(pluginInstance, "res/SpringReverbIR.f32")); |
| 12 | } |
| 13 | catch (std::exception& e) { |
| 14 | WARN("Cannot load IR: %s", e.what()); |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | static const size_t BLOCK_SIZE = 1024; |
| 19 |