Lines Matching refs:feature_unit_
32 bool has_gain() const { return feature_unit_ && feature_unit_->has_vol(); }
33 bool has_agc() const { return feature_unit_ && feature_unit_->has_agc(); }
34 bool has_mute() const { return feature_unit_ && feature_unit_->has_mute(); }
35 float cur_gain() const { return feature_unit_ ? feature_unit_->vol_cur_db() : 0.0f; }
36 float min_gain() const { return feature_unit_ ? feature_unit_->vol_min_db() : 0.0f; }
37 float max_gain() const { return feature_unit_ ? feature_unit_->vol_max_db() : 0.0f; }
38 float gain_res() const { return feature_unit_ ? feature_unit_->vol_res_db() : 0.0f; }
39 bool cur_agc() const { return feature_unit_ ? feature_unit_->agc_cur() : false; }
40 bool cur_mute() const { return feature_unit_ ? feature_unit_->mute_cur() : false; }
43 return feature_unit_ ? feature_unit_->SetVol(proto, db) : 0.0f;
47 return feature_unit_ ? feature_unit_->SetMute(proto, mute) : false;
51 return feature_unit_ ? feature_unit_->SetAgc(proto, enabled) : false;
91 fbl::RefPtr<FeatureUnit> feature_unit_;