CoreAudio: fix supported channel count.
authorYoann Lopes <yoann.lopes@digia.com>
Mon, 31 Mar 2014 12:22:40 +0000 (14:22 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 1 Apr 2014 11:43:13 +0000 (13:43 +0200)
commitd2b54b360ec0cedf2dfd64c72cc8f476fb93bc7c
tree60d55122abb4b7953e6d2d4512b73b394ea67521
parentb6970e2e79aac9a63bc4db5f879a3f050889f991
CoreAudio: fix supported channel count.

We were using the number of channels actually used by audio devices as
the maximum channel count. This is wrong as CoreAudio can automatically
split or merge channels in order to accommodate the device.
We now assume all channel configurations are valid.

Task-number: QTBUG-37956
Change-Id: Ia8e8bbea8543caa7fecda305be74a2953b92fd25
Reviewed-by: Andy Nichols <andy.nichols@digia.com>
src/plugins/coreaudio/coreaudiodeviceinfo.mm
src/plugins/coreaudio/coreaudiosessionmanager.h
src/plugins/coreaudio/coreaudiosessionmanager.mm