Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit fc26d68c authored by jiabin's avatar jiabin
Browse files

EffectHG: fix issues when parameters is nan.

HapticGenerator is compiled with fast math flag, which will make
standard isnan always return false. In that case, use safe_isnan from
audio_utils instead.

Also, when the Q factor is nan, BSF zero Q should be initialized as
DEFAULT_BSF_ZERO_Q.

Bug: 312775078
Test: make, run HapticGenerator
Change-Id: I3fbf2e3b804ecb56019d3e08181852641bb74e4d
parent 97be1363
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment