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

Method GetSettings

libraries/lib-module-manager/PluginManager.cpp:1397–1425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1395}
1396
1397audacity::BasicSettings *PluginManager::GetSettings()
1398{
1399 if (!mSettings)
1400 {
1401 mSettings = sFactory(FileNames::PluginSettings());
1402
1403 // Check for a settings version that we can understand
1404 if (mSettings->HasEntry(SETVERKEY))
1405 {
1406 wxString setver = mSettings->Read(SETVERKEY, SETVERKEY);
1407 if (setver < SETVERCUR )
1408 {
1409 // This is where we'd put in conversion code when the
1410 // settings version changes.
1411 //
1412 // Should also check for a settings file that is newer than
1413 // what we can understand.
1414 }
1415 }
1416 else
1417 {
1418 // Make sure is has a version string
1419 mSettings->Write(SETVERKEY, SETVERCUR);
1420 mSettings->Flush();
1421 }
1422 }
1423
1424 return mSettings.get();
1425}
1426
1427bool PluginManager::HasGroup(const RegistryPath & groupName)
1428{

Callers 4

GetEffectStagesImplFunction · 0.80
GetLatencyMsMethod · 0.80
RealtimeProcessMethod · 0.80
StartMethod · 0.80

Calls 5

HasEntryMethod · 0.45
ReadMethod · 0.45
WriteMethod · 0.45
FlushMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected