Skip to content

Commit

Permalink
Added checking of HasIndependentRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 committed Feb 24, 2024
1 parent 63f9f42 commit 153eae2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/grandorgue/model/pipe-config/GOPipeConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ GOPipeConfig::GOPipeConfig(
m_BitsPerSample(-1),
m_Channels(-1),
m_LoopLoad(-1),
m_Percussive(BOOL3_DEFAULT),
m_IndependentRelease(BOOL3_DEFAULT),
m_Compress(BOOL3_DEFAULT),
m_AttackLoad(BOOL3_DEFAULT),
Expand Down Expand Up @@ -143,8 +144,10 @@ void GOPipeConfig::Load(
ODFSetting, group, prefix + wxT("TrackerDelay"), 0, 10000, false, 0);
m_Percussive = cfg.ReadBooleanTriple(
ODFSetting, group, prefix + wxT("Percussive"), false);
m_IndependentRelease = cfg.ReadBooleanTriple(
ODFSetting, group, prefix + wxT("HasIndependentRelease"), false);
m_IndependentRelease = to_bool(m_Percussive)
? cfg.ReadBooleanTriple(
ODFSetting, group, prefix + wxT("HasIndependentRelease"), false)
: BOOL3_DEFAULT;
LoadFromCmb(cfg, group, prefix);
}

Expand Down

0 comments on commit 153eae2

Please sign in to comment.