CoreAudio: Use the real default audio device for QSoundEffect
authorAndy Nichols <andy.nichols@digia.com>
Sun, 2 Mar 2014 19:39:44 +0000 (20:39 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 3 Mar 2014 15:45:38 +0000 (16:45 +0100)
commit8c9b6f67a73824aab8c74df7a1254425985fd8a5
tree26f7b01f02dd23c776332bbe16768419a583026e
parent775914ffb21bcdc6059e5867993b927a824d0cac
CoreAudio: Use the real default audio device for QSoundEffect

There is an assumption in QtMultimedia that the first audio device
returned by QAudioDeviceInfo::availableDevices is the default device, so
we must make an effor to make sure this is true.  This commit should fix
the issue on OS X.

Task-number: QTBUG-36638
Change-Id: Id388d7218b465cb29d826f46ee825e982c5f7ffc
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
src/plugins/coreaudio/coreaudiodeviceinfo.mm