sdl_java_suite icon indicating copy to clipboard operation
sdl_java_suite copied to clipboard

SDLPerformAudioPassThru in latest build is fairly slow

Open kkhemka-amzn opened this issue 4 years ago • 0 comments

Bug Report

When using SDLPerformAudioPassThru, the delay between when the request is sent to the head unit and when the app actually starts receiving the audio data is fairly large. On our app running SDL 5.1.1, the delay is usually between 1.2 and 1.4 seconds. I've checked and both apps are not running anything else at the same time the SDLPerformAudioPassThru request is sent.

I also ran this test on iOS and our app on iOS takes between 1.4 and 1.6 seconds. When Ford learned this, they requested we start this ticket because ~1.3 seconds is far too much for them. Half of the time, the sound being recorded loses so much at the beginning because the jingle is played immediately from the request, but the recording doesn't start till so much later.

We will also be creating a ticket on iOS.

Reproduction Steps
  1. Send SDLPerformAudioPassThru request to head unit
  2. Track time it takes from the time the request is sent to SDL library via sdlManager.send() till when audio data starts coming into the audioDataHandler.
Expected Behavior

Start recording when the jingle is played.

Observed Behavior

Jingle is played and then recording starts ~1.3 seconds after that.

OS & Version Information
  • Android Version: 11.1
  • SDL Android Version: 5.1.1
  • Testing Against: Ford+Alexa Android App, Ford SYNC head units

kkhemka-amzn avatar Sep 21 '21 01:09 kkhemka-amzn