Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit feb4e5c8 authored by Andy Hung's avatar Andy Hung
Browse files

Spatializer: set spatializer threads to RT priority 1

In order to ensure glitch-free low latency head tracking,
set the following threads to the lowest RT priority:
  1) AudioFlinger SpatializerThread
  2) Audio HW service StreamOut Spatializer writer worker thread
  3) Audio HW service AudioEffect Spatializer worker thread

The RT priority level is configurable by property as follows:

// Enable real time priority (higher is better) -
// we allow values from 1 - 3, defaults to 1.
// If the value is outside that range,
// the highest non-realtime priority is used.
$ adb shell setprop audio.spatializer.priority 3

// After setting the property, kill audioserver to reinitialize.
// This can occur while playback is ongoing.
$ adb shell pkill audioserver

Test: as above
Bug: 253276925
Change-Id: Ic9008c2ed5856410cae7a89fa9ba0533c20d7b10
parent d7a6aeea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment