Skip to content

Commit

Permalink
Back-end driver interface for Core Audio.
Browse files Browse the repository at this point in the history
Added option for Core Audio to preference dialog.
  • Loading branch information
kfreezen committed May 11, 2020
1 parent f579e6c commit 461e790
Show file tree
Hide file tree
Showing 12 changed files with 633 additions and 15 deletions.
15 changes: 13 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ SET(JACK_MIN_VERSION "0.98.0")
option(BUILD_JACK "Build with support for ${JACK_LONGNAME} audio backend. JACK >= ${JACK_MIN_VERSION} will be needed." ON)
option(BUILD_PULSEAUDIO "Build with support for PulseAudio audio backend." ON)
option(BUILD_ALSA "Build with support for ALSA audio backend." ON)
option(BUILD_COREAUDIO "Build with support for CoreAudio audio backend." ON)
option(BUILD_PORTAUDIO "Build with support for PortAudio audio backend." ON)
option(BUILD_PORTMIDI "Build with support for PortAudio's MIDI features." ${BUILD_PORTAUDIO}) # PortAudio required
option(BUILD_PCH "Build using precompiled headers." ON)
Expand Down Expand Up @@ -188,7 +189,7 @@ if (APPLE)

set(HAS_AUDIOFILE TRUE) # Requires libsndfile
set(MAC_APPCAST_URL "")

find_library(AudioToolboxFW NAMES AudioToolbox)
find_library(AudioUnitFW NAMES AudioUnit)
find_library(CoreAudioFW NAMES CoreAudio)
Expand Down Expand Up @@ -499,14 +500,24 @@ ELSE(BUILD_JACK)
MESSAGE(STATUS "${JACK_LONGNAME} support disabled")
ENDIF(BUILD_JACK)

##
## CoreAudio
##

if (BUILD_COREAUDIO)
if (APPLE)
message("Including CoreAudio support.")
set(USE_COREAUDIO 1)
endif (APPLE)
endif (APPLE)

##
## PortAudio
##

if (BUILD_PORTAUDIO)
if (MINGW OR MSVC)
set ( USE_PORTAUDIO 1 )
set ( USE_PORTAUDIO 1 )
include(FindPortAudio)
add_library(portaudiodll SHARED IMPORTED)
set_target_properties(portaudiodll PROPERTIES IMPORTED_IMPLIB ${PORTAUDIO_LIBRARY})
Expand Down
Loading

0 comments on commit 461e790

Please sign in to comment.