diff --git a/.gitmodules b/.gitmodules index 8867ebeb..af5a140b 100644 --- a/.gitmodules +++ b/.gitmodules @@ -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 diff --git a/external/eaudiofx b/external/eaudiofx new file mode 160000 index 00000000..41101205 --- /dev/null +++ b/external/eaudiofx @@ -0,0 +1 @@ +Subproject commit 411012055cb4ee9766a517f3e9f7f89eddf9c162 diff --git a/external/portaudio b/external/portaudio deleted file mode 160000 index aaca1592..00000000 --- a/external/portaudio +++ /dev/null @@ -1 +0,0 @@ -Subproject commit aaca1592f23a89bf4fe55b8890d273fec5caef4d diff --git a/external/rtaudio/lutin_rtaudio.py b/external/rtaudio/lutin_rtaudio.py new file mode 100644 index 00000000..cd304220 --- /dev/null +++ b/external/rtaudio/lutin_rtaudio.py @@ -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 + + + + + + + + + diff --git a/external/rtaudio/rtaudio b/external/rtaudio/rtaudio new file mode 160000 index 00000000..2f2444b2 --- /dev/null +++ b/external/rtaudio/rtaudio @@ -0,0 +1 @@ +Subproject commit 2f2444b2be8406a2deff37546324699742f3e6d1