bool _self_solo;
uint32_t _soloed_by_others_upstream;
uint32_t _soloed_by_others_downstream;
- uint32_t _solo_isolated;
+ bool _solo_isolated;
uint32_t _solo_isolated_by_upstream;
void mod_solo_isolated_by_upstream (bool, void*);
, _self_solo (false)
, _soloed_by_others_upstream (0)
, _soloed_by_others_downstream (0)
- , _solo_isolated (0)
+ , _solo_isolated (false)
, _solo_isolated_by_upstream (0)
, _denormal_protection (false)
, _recordable (true)
bool changed = false;
if (yn) {
- if (_solo_isolated == 0) {
+ if (_solo_isolated == false) {
_mute_master->set_solo_ignore (true);
changed = true;
}
- _solo_isolated++;
+ _solo_isolated = true;
} else {
- if (_solo_isolated > 0) {
- _solo_isolated--;
- if (_solo_isolated == 0) {
- _mute_master->set_solo_ignore (false);
- changed = true;
- }
+ if (_solo_isolated == true) {
+ _solo_isolated = false;
+ _mute_master->set_solo_ignore (false);
+ changed = true;
}
}
bool
Route::solo_isolated () const
{
- return (_solo_isolated > 0) || (_solo_isolated_by_upstream > 0);
+ return (_solo_isolated == true) || (_solo_isolated_by_upstream > 0);
}
void