CoreAudio: Create an audio plugin supporting iOS and OS X
This removes the Mac audio backend that was hardcoded into QtMultimedia and adds a new audio plugin using the CoreAudio API. Change-Id: Ib15291825f9452a3763e0eeb281d952deb0bad3d Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@digia.com> Reviewed-by: Christian Stromme <christian.stromme@digia.com> Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
044e48d5a4
commit
b357c55f2d
39
src/plugins/coreaudio/coreaudio.pro
Normal file
39
src/plugins/coreaudio/coreaudio.pro
Normal file
@@ -0,0 +1,39 @@
|
||||
TARGET = qtaudio_coreaudio
|
||||
QT += multimedia-private
|
||||
|
||||
PLUGIN_TYPE = audio
|
||||
PLUGIN_CLASS_NAME = CoreAudioPlugin
|
||||
|
||||
load(qt_plugin)
|
||||
OTHER_FILES += \
|
||||
coreaudio.json
|
||||
|
||||
#DEFINES += QT_DEBUG_COREAUDIO
|
||||
|
||||
HEADERS += \
|
||||
coreaudiodeviceinfo.h \
|
||||
coreaudioinput.h \
|
||||
coreaudiooutput.h \
|
||||
coreaudioplugin.h \
|
||||
coreaudioutils.h
|
||||
|
||||
OBJECTIVE_SOURCES += \
|
||||
coreaudiodeviceinfo.mm \
|
||||
coreaudioinput.mm \
|
||||
coreaudiooutput.mm \
|
||||
coreaudioplugin.mm \
|
||||
coreaudioutils.mm
|
||||
|
||||
ios {
|
||||
HEADERS += coreaudiosessionmanager.h
|
||||
OBJECTIVE_SOURCES += coreaudiosessionmanager.mm
|
||||
LIBS += -framework AVFoundation
|
||||
} else {
|
||||
LIBS += \
|
||||
-framework ApplicationServices \
|
||||
-framework AudioUnit
|
||||
}
|
||||
|
||||
LIBS += \
|
||||
-framework CoreAudio \
|
||||
-framework AudioToolbox
|
||||
Reference in New Issue
Block a user