| 177 | |
| 178 | template <typename T> |
| 179 | inline bool change(T& value, T newValue, bool& out) { |
| 180 | bool changed = value != newValue; |
| 181 | out |= changed; |
| 182 | value = std::move(newValue); |
| 183 | return changed; |
| 184 | } |
| 185 | |
| 186 | void Voice::loadJson(Json const& config, bool skipSave) { |
| 187 | // Not all keys are required |