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
Loading
Please register or sign in to comment