diff options
| author | 2018-12-07 18:00:16 -0800 | |
|---|---|---|
| committer | 2018-12-07 18:00:16 -0800 | |
| commit | f2dce141d1dc84e75605db76ddab4def28deb777 (patch) | |
| tree | 9766811ab612a83c6830351594467a1e9d129b89 | |
| parent | d0e81d2fb7bf15042d6e5cd60a861a16bf0da4fd (diff) | |
SoundTrigger: Fix AudioFormat constructor argument count
Test: SoundTrigger sanity
Bug: 120686243
Change-Id: Ie8909d4c374722eebf23242db288ff473438cd96
| -rw-r--r-- | core/jni/android_hardware_SoundTrigger.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/jni/android_hardware_SoundTrigger.cpp b/core/jni/android_hardware_SoundTrigger.cpp index 98bc735e1fae..8a280343e731 100644 --- a/core/jni/android_hardware_SoundTrigger.cpp +++ b/core/jni/android_hardware_SoundTrigger.cpp @@ -225,7 +225,8 @@ void JNISoundTriggerCallback::onRecognitionEvent(struct sound_trigger_recognitio gAudioFormatCstor, audioFormatFromNative(event->audio_config.format), event->audio_config.sample_rate, - inChannelMaskFromNative(event->audio_config.channel_mask)); + inChannelMaskFromNative(event->audio_config.channel_mask), + (jint)0 /* channelIndexMask */); } if (event->type == SOUND_MODEL_TYPE_KEYPHRASE) { |