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>
This commit is contained in:
Yoann Lopes
2014-03-31 14:22:40 +02:00
committed by The Qt Project
parent b6970e2e79
commit d2b54b360e
3 changed files with 6 additions and 43 deletions

View File

@@ -377,16 +377,6 @@ QList<QByteArray> CoreAudioSessionManager::outputDevices()
return outputDevices;
}
int CoreAudioSessionManager::inputChannelCount()
{
return [[m_sessionObserver audioSession] inputNumberOfChannels];
}
int CoreAudioSessionManager::outputChannelCount()
{
return [[m_sessionObserver audioSession] outputNumberOfChannels];
}
float CoreAudioSessionManager::currentIOBufferDuration()
{
return [[m_sessionObserver audioSession] IOBufferDuration];