diff --git a/data/hardwareIOs.json b/data/hardwareIOs.json new file mode 100644 index 0000000..4c943fc --- /dev/null +++ b/data/hardwareIOs.json @@ -0,0 +1,29 @@ +{ + microphone:{ + io:"input", + map-on:{ + interface:"coreIOS", + name:"default", + }, + frequency:48000, + channel-map:[ + "front-left", "front-right" + ], + type:"int16", + nb-chunk:1024 + }, + speaker:{ + io:"output", + map-on:{ + interface:"coreIOS", + name:"default", + }, + frequency:48000, + channel-map:[ + "front-left", "front-right", + ], + type:"int16", + nb-chunk:1024, + volume-name:"MASTER" + } +} \ No newline at end of file diff --git a/data/hardware.json b/data/hardwareLinux.json similarity index 100% rename from data/hardware.json rename to data/hardwareLinux.json diff --git a/data/hardwareMacOs.json b/data/hardwareMacOs.json new file mode 100644 index 0000000..7f3c1f0 --- /dev/null +++ b/data/hardwareMacOs.json @@ -0,0 +1,29 @@ +{ + microphone:{ + io:"input", + map-on:{ + interface:"coreOSX", + name:"default", + }, + frequency:48000, + channel-map:[ + "front-left", "front-right" + ], + type:"int16", + nb-chunk:1024 + }, + speaker:{ + io:"output", + map-on:{ + interface:"coreOSX", + name:"default", + }, + frequency:48000, + channel-map:[ + "front-left", "front-right", + ], + type:"int16", + nb-chunk:1024, + volume-name:"MASTER" + } +} \ No newline at end of file diff --git a/data/hardwareWindows.json b/data/hardwareWindows.json new file mode 100644 index 0000000..c68e1f0 --- /dev/null +++ b/data/hardwareWindows.json @@ -0,0 +1,29 @@ +{ + microphone:{ + io:"input", + map-on:{ + interface:"ds", + name:"default", + }, + frequency:44100, + channel-map:[ + "front-left", "front-right" + ], + type:"int16", + nb-chunk:1024 + }, + speaker:{ + io:"output", + map-on:{ + interface:"ds", + name:"default", + }, + frequency:44100, + channel-map:[ + "front-left", "front-right", + ], + type:"int16", + nb-chunk:1024, + volume-name:"MASTER" + } +} \ No newline at end of file diff --git a/lutin_river_test.py b/lutin_river_test.py index fad717c..f92d696 100644 --- a/lutin_river_test.py +++ b/lutin_river_test.py @@ -15,7 +15,20 @@ def create(target): 'test/debug.cpp' ]) - myModule.copy_folder('data/*') + if target.name=="Windows": + myModule.copy_file('data/hardwareWindows.json', 'hardware.json') + elif target.name=="Linux": + myModule.copy_file('data/hardwareLinux.json', 'hardware.json') + elif target.name=="MacOs": + myModule.copy_file('data/hardwareMacOs.json', 'hardware.json') + elif target.name=="IOs": + myModule.copy_file('data/hardwareIOs.json', 'hardware.json') + elif target.name=="Android": + myModule.copy_file('data/hardwareAndroid.json', 'hardware.json') + else: + debug.warning("unknow target for AIRTAudio : " + target.name); + + myModule.copy_file('data/virtual.json', 'virtual.json') myModule.add_module_depend(['river', 'gtest', 'etk']) # add the currrent module at the