CoreAudio: Make it possible to set volume on of QAudioOutput
authorAndy Nichols <andy.nichols@digia.com>
Sun, 2 Mar 2014 17:44:52 +0000 (18:44 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 3 Mar 2014 14:55:00 +0000 (15:55 +0100)
commit775914ffb21bcdc6059e5867993b927a824d0cac
tree8a2fb92bcc8d9f33552a62e57333d5587e10350a
parent1f5b5cb47318536cefde004d2253d368c868140f
CoreAudio: Make it possible to set volume on of QAudioOutput

QAudioOutput::setVolume stopped working for CoreAudio when it was ported
to live in it's own plugin.  This was because it was not possible to set
the volume of QAudioOutput in iOS.  Now the functionality has been
restored and added for iOS as well.  For OS X we use the old method of
setting the volume property of the AudioUnit.  On iOS it is not possible
to set the volume on a per AudioUnit basis, so we now manually modify
the buffer contents (the same we do for QAudioInput already).

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