[DEV] start separate harware file

This commit is contained in:
Edouard DUPIN 2015-02-12 21:02:51 +01:00
parent 3f1ac849a8
commit 1e10cc276b
5 changed files with 101 additions and 1 deletions

29
data/hardwareIOs.json Normal file
View File

@ -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"
}
}

29
data/hardwareMacOs.json Normal file
View File

@ -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"
}
}

29
data/hardwareWindows.json Normal file
View File

@ -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"
}
}

View File

@ -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