| 256 | void onSampleRateChange(const SampleRateChangeEvent &e) override { updateSampleRates(); } |
| 257 | |
| 258 | json_t *dataToJson() override |
| 259 | { |
| 260 | auto res = json_object(); |
| 261 | json_object_set_new(res, "airwindowSelectedFX", json_string(selectedFX.c_str())); |
| 262 | |
| 263 | // Stream next poly here in case you change it without an audio thread |
| 264 | json_object_set_new(res, "polyphonyMode", json_integer(nextPoly)); |
| 265 | json_object_set_new(res, "lockedType", json_boolean(lockedType)); |
| 266 | json_object_set_new(res, "randomizeFX", json_boolean(randomizeFX)); |
| 267 | json_object_set_new(res, "blockSize", json_integer(blockSize)); |
| 268 | return res; |
| 269 | } |
| 270 | |
| 271 | void dataFromJson(json_t *rootJ) override |
| 272 | { |
nothing calls this directly
no outgoing calls
no test coverage detected