Support Low Latency Streams for Spatial Audio
For Dynamic Spatial Audio, when starting the stream, the desired stream latency mode must be passed into the Bluetooth stack via: IBluetoothAudioPort::startStream(bool is_low_latency) This latency mode will influence the codec selection. Whether or not the stream being started should be low latency is determined by: - The audio_output_flags_t for the stream contain AUDIO_OUTPUT_FLAG_SPATIALIZER, indicating an immersive audio stream. - AUDIO_LATENCY_MODE_LOW is one of the supported latency modes for the given Bluetooth device. If both of these conditions are true, then the stream will be designated as "low latency" when started. Bug: 334915129 Bug: 346351167 Test: m internalproject-userdebug Test: Test Bluetooth playback with Dynamic Spatial Audio enabled and disabled. Ignore-AOSP-First: Internal project operating on own downstream branch with approaching release timelines. Merged-In: Idd929503a1744e9b2b9452d6d5ea3a77b201be11 Change-Id: Idd929503a1744e9b2b9452d6d5ea3a77b201be11 (cherry picked from commit 3f86b0451a012ad1b6213a6a64a5101c14f33fba)
Loading
Please register or sign in to comment