MCPcopy Create free account
hub / github.com/audacity/audacity / WriteEnum

Function WriteEnum

libraries/lib-components/EffectAutomationParameters.h:202–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 bool WriteEnum(const wxString & key, int value,
203 const EnumValueSymbol choices[], size_t nChoices)
204 {
205 if (value < 0 || value >= (int)nChoices)
206 {
207 return false;
208 }
209
210 return wxFileConfig::Write(key, choices[value].Internal());
211 }
212
213 bool ReadAndVerify(const wxString & key, float *val, float defVal, float min, float max) const
214 {

Callers 1

WriteEnumMethod · 0.85

Calls 1

WriteFunction · 0.85

Tested by

no test coverage detected