Skip to content

Commit

Permalink
Moved params back to internal memory
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulFreund committed Oct 23, 2023
1 parent fecacd8 commit c44294e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/deluge/modulation/params/param_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int32_t ParamManager::setupMIDI() {
}

int32_t ParamManager::setupUnpatched() {
void* memoryUnpatched = GeneralMemoryAllocator::get().allocLowSpeed(sizeof(UnpatchedParamSet));
void* memoryUnpatched = GeneralMemoryAllocator::get().allocMaxSpeed(sizeof(UnpatchedParamSet));
if (!memoryUnpatched) {
return ERROR_INSUFFICIENT_RAM;
}
Expand All @@ -83,19 +83,19 @@ int32_t ParamManager::setupUnpatched() {
}

int32_t ParamManager::setupWithPatching() {
void* memoryUnpatched = GeneralMemoryAllocator::get().allocLowSpeed(sizeof(UnpatchedParamSet));
void* memoryUnpatched = GeneralMemoryAllocator::get().allocMaxSpeed(sizeof(UnpatchedParamSet));
if (!memoryUnpatched) {
return ERROR_INSUFFICIENT_RAM;
}

void* memoryPatched = GeneralMemoryAllocator::get().allocLowSpeed(sizeof(PatchedParamSet));
void* memoryPatched = GeneralMemoryAllocator::get().allocMaxSpeed(sizeof(PatchedParamSet));
if (!memoryPatched) {
ramError2:
delugeDealloc(memoryUnpatched);
return ERROR_INSUFFICIENT_RAM;
}

void* memoryPatchCables = GeneralMemoryAllocator::get().allocLowSpeed(sizeof(PatchCableSet));
void* memoryPatchCables = GeneralMemoryAllocator::get().allocMaxSpeed(sizeof(PatchCableSet));
if (!memoryPatchCables) {
delugeDealloc(memoryPatched);
goto ramError2;
Expand Down

0 comments on commit c44294e

Please sign in to comment.