added support for jackonmac
This commit is contained in:
parent
c1179a6106
commit
9c1ddbba64
2 changed files with 21 additions and 1 deletions
20
Jamulus.pro
20
Jamulus.pro
|
@ -56,6 +56,26 @@ win32 {
|
||||||
-framework CoreAudio \
|
-framework CoreAudio \
|
||||||
-framework AudioToolbox \
|
-framework AudioToolbox \
|
||||||
-framework AudioUnit
|
-framework AudioUnit
|
||||||
|
|
||||||
|
# replace coreaudio with jack if requested
|
||||||
|
contains(CONFIG, "jackonmac") {
|
||||||
|
message(Using Jack instead of CoreAudio.)
|
||||||
|
|
||||||
|
!exists(/usr/include/jack/jack.h) {
|
||||||
|
!exists(/usr/local/include/jack/jack.h) {
|
||||||
|
message(Warning: jack.h was not found at the usual place, maybe jack is not installed)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
HEADERS -= mac/sound.h
|
||||||
|
SOURCES -= mac/sound.cpp
|
||||||
|
HEADERS += linux/sound.h
|
||||||
|
SOURCES += linux/sound.cpp
|
||||||
|
DEFINES += WITH_SOUND
|
||||||
|
DEFINES += JACK_REPLACES_COREAUDIO
|
||||||
|
INCLUDEPATH += /usr/local/include
|
||||||
|
LIBS += /usr/local/lib/libjack.dylib
|
||||||
|
}
|
||||||
} else:android {
|
} else:android {
|
||||||
HEADERS += android/sound.h
|
HEADERS += android/sound.h
|
||||||
SOURCES += android/sound.cpp
|
SOURCES += android/sound.cpp
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
# ifdef _WIN32
|
# ifdef _WIN32
|
||||||
# include "../windows/sound.h"
|
# include "../windows/sound.h"
|
||||||
# else
|
# else
|
||||||
# if defined ( __APPLE__ ) || defined ( __MACOSX )
|
# if ( defined ( __APPLE__ ) || defined ( __MACOSX ) ) && !defined ( JACK_REPLACES_COREAUDIO )
|
||||||
# include "../mac/sound.h"
|
# include "../mac/sound.h"
|
||||||
# else
|
# else
|
||||||
# ifdef ANDROID
|
# ifdef ANDROID
|
||||||
|
|
Loading…
Reference in a new issue