CoreAudio: Set default audio category to Playback on iOS
authorAndy Nichols <andy.nichols@digia.com>
Thu, 6 Mar 2014 11:33:41 +0000 (12:33 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 7 Mar 2014 13:58:25 +0000 (14:58 +0100)
commit175bdda34701fb3ee9688b40a974a402975b910f
tree986991f58729fc43f8ce0585666666ae7633d5cb
parentb6b974361ab000be0585998dabfe8019ad6b39c1
CoreAudio: Set default audio category to Playback on iOS

This fixes the issue that when we use QSoundEffect we dont need to get
permission to use the microphone.  This was because we were defaulting
to PlayAndRecord.  Now we only switch to the PlayAndRecord category when
we try and use an input device.

[ChangeLog][QtMultimedia][iOS] Using QSoundEffect (or SoundEffect in
QML) no longer requires permission to use the microphone.

Change-Id: I94535215497a718005c280bfd84b428b4bf1b16a
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/coreaudio/coreaudiodeviceinfo.mm
src/plugins/coreaudio/coreaudioinput.mm
src/plugins/coreaudio/coreaudiosessionmanager.mm