Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Dec 1, 2024
1 parent 47dc588 commit e9d7646
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inline ParamHolder::ParamHolder (ParamHolder* parent, std::string_view phName, b
jassert (parent->arena != nullptr);
return OptionalPointer<ChainedArenaAllocator> { parent->arena.get(), false };
}
return OptionalPointer<ChainedArenaAllocator> { static_cast<size_t> (24 * CHOWDSP_PLUGIN_STATE_MAX_PARAM_COUNT) };
return OptionalPointer<ChainedArenaAllocator> { static_cast<size_t> (32 * CHOWDSP_PLUGIN_STATE_MAX_PARAM_COUNT) };
}(),
},
name { arena::alloc_string (*arena, phName) },
Expand Down Expand Up @@ -374,7 +374,7 @@ inline void ParamHolder::deserialize (nonstd::span<const std::byte>& serial_data
break;
}
}

/*
for (auto [param_id, param_ptr] : parameters)
{
const auto type = getType (param_ptr);
Expand All @@ -393,6 +393,7 @@ inline void ParamHolder::deserialize (nonstd::span<const std::byte>& serial_data
break;
}
}
*/
}

inline json ParamHolder::serialize_json (const ParamHolder& paramHolder)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void PluginStateImpl<ParameterState, NonParameterState>::serialize (juce::Memory
NonParamState::serialize (arena, nonParams);

const auto serial = dump_serialized_bytes (arena, &frame);
data.append (serial.begin(), serial.size());
data.append (serial.data(), serial.size());
}

template <typename ParameterState, typename NonParameterState>
Expand Down

0 comments on commit e9d7646

Please sign in to comment.