CoreAudio: Centralize AVAudioSession activation
AVFMediaPlayer kept its own refcounted activate/deactivate for the
shared, process-wide AVAudioSession and forced a fixed category on
every asset load. QCoreAudioSource/QCoreAudioSink never activated
the session themselves, only reacting to it after the fact via
interruption recovery. Neither side knew about the other, so a
media player tearing down could deactivate the session while a
QAudioSource/QAudioSink was still running, and the player's
playback-only category could silently break concurrent capture.
Give QAVAudioSessionManager sole ownership of activation: acquiring
an ActivationToken refcounts the shared session and derives its
category from every live client's requirements, and
QAudioSource/QAudioSink now hold a token for as long as their
AudioUnit runs instead of assuming the session is already active.
Pick-to: 6.12 6.12.0
Change-Id: Idac3986a0fdf031566df32265287f2821fe5c31c
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>