Apply intensity control for haptic data.
Use the same logic in VibrationEffect.scale to control the intensity of haptic playback in audio framework. Note that as the maximum amplitude of vibrator is 255, convert the haptic data to pcm_8_bit before doing scaling. Test: Manually Change-Id: I6136d27c9255a215834b6e3092aa8ad696fbae04
Loading
Please register or sign in to comment