MCPcopy Create free account
hub / github.com/VCVRack/Befaco / setPresetSlot

Method setPresetSlot

src/Random8.cpp:492–500  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490 }
491
492 void setPresetSlot(int slot, json_t *data) {
493 if (slot < 0 || slot >= NUM_CHANNELS) {
494 return;
495 }
496 if (presetSlots[slot]) {
497 json_decref(presetSlots[slot]);
498 }
499 presetSlots[slot] = data;
500 }
501
502 void savePresetSlot(int slot) {
503 if (slot < 0 || slot >= NUM_CHANNELS) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected