[DEV] add rtAudio instead of portaudio

This commit is contained in:
Edouard DUPIN 2014-03-05 21:43:00 +01:00
parent f79b8b5ffd
commit f9e4250a09
5 changed files with 62 additions and 1 deletions

6
.gitmodules vendored
View File

@ -50,3 +50,9 @@
[submodule "monk"]
path = monk
url = https://github.com/HeeroYui/monk.git
[submodule "external/rtaudio/rtaudio"]
path = external/rtaudio/rtaudio
url = https://github.com/HeeroYui/rtaudio.git
[submodule "external/eaudiofx"]
path = external/eaudiofx
url = https://github.com/HeeroYui/eaudiofx.git

1
external/eaudiofx vendored Submodule

@ -0,0 +1 @@
Subproject commit 411012055cb4ee9766a517f3e9f7f89eddf9c162

1
external/portaudio vendored

@ -1 +0,0 @@
Subproject commit aaca1592f23a89bf4fe55b8890d273fec5caef4d

54
external/rtaudio/lutin_rtaudio.py vendored Normal file
View File

@ -0,0 +1,54 @@
#!/usr/bin/python
import lutinModule as module
import lutinTools as tools
import lutinDebug as debug
def get_desc():
return "rtaudio : Generic wrapper on all audio interface"
def create(target):
myModule = module.Module(__file__, 'rtaudio', 'LIBRARY')
myModule.add_src_file([
'rtaudio/RtAudio.cpp'
])
if target.name=="Windows":
# ASIO API on Windows
myModule.add_export_flag_CC(['__WINDOWS_ASIO__'])
# Windows DirectSound API
#myModule.add_export_flag_CC(['__WINDOWS_DS__'])
elif target.name=="Linux":
# Linux Alsa API
myModule.add_export_flag_CC(['-D__LINUX_ALSA__'])
# Linux Jack API
#myModule.add_export_flag_CC(['-D__UNIX_JACK__'])
# Linux PulseAudio API
#myModule.add_export_flag_CC(['-D__LINUX_PULSE__'])
#depending libs :
myModule.add_export_flag_LD("-lasound")
myModule.add_export_flag_LD("-lpthread")
elif target.name=="MacOs":
# MacOsX core
myModule.add_export_flag_CC(['__MACOSX_CORE__'])
myModule.add_export_flag_LD("-framework CoreAudio")
myModule.add_export_flag_LD("-framework CoreMIDI")
else:
debug.warning("unknow target for RTAudio : " + target.name);
myModule.add_export_path(tools.get_current_path(__file__))
myModule.add_path(tools.get_current_path(__file__)+"/rtaudio/")
myModule.add_path(tools.get_current_path(__file__)+"/rtaudio/include/")
# add the currrent module at the
return myModule

1
external/rtaudio/rtaudio vendored Submodule

@ -0,0 +1 @@
Subproject commit 2f2444b2be8406a2deff37546324699742f3e6d1