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>
commitd41694e3795f9bfc75d0d554df30edc22ab4bf92
parent32900d06eeabd36f1d7844f05b1faaad5e3f3e89
authorTim Blechmann <tim.blechmann@qt.io>
committerNils Petter Skålerud <nils.petter.skalerud@qt.io>
commit timeWed, 9 Sep 2026 10:10:11 +0000