AudioFlinger: duplicating output underrun improvements

Several improvements to avoid underruns on OutputTracks:
1) Set the duplicating thread priority to the same as the
spatializer thread.
2) Set the OutputTrack start threshold to the framecount
of its downstream mixer to help synchronizing both outputs.
3) Reduce the wait time on the duplicating thread to one framecount
to give more chances for an underrunning OutputTrack to catchup.

Bug: 412835975
Test: repro steps in bug
Flag: EXEMPT bug fix
Change-Id: I24becd50c1af483f302710f57a2f04a35d5d64c3
2 files changed