[DEV] start separate harware file

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

57
data/hardwareLinux.json Normal file
View File

@@ -0,0 +1,57 @@
{
microphone:{ # name of the device
io:"input", # input or output
map-on:{ # select hardware interface and name
interface:"alsa", # interface : "alsa", "pulse", "core", ...
name:"default", # name of the interface
},
frequency:48000, # frequency to open device
channel-map:[ # mapping of the harware device (mapping is not get under)
"front-left", "front-right"
],
type:"int16", # format to open device (int8, int16, int16-on-ont32, int24, int32, float)
nb-chunk:1024 # number of chunk to open device (create the latency anf the frequency to call user)
},
speaker:{
io:"output",
map-on:{
interface:"alsa",
name:"default",
},
frequency:48000,
channel-map:[
"front-left", "front-right",
],
type:"int16",
nb-chunk:1024,
volume-name:"MASTER"
},
speaker-pulse:{
io:"output",
map-on:{
interface:"pulse",
name:"default",
},
frequency:48000,
channel-map:[
"front-left", "front-right",
],
type:"int16",
nb-chunk:1024,
volume-name:"MASTER"
},
speaker-jack:{
io:"output",
map-on:{
interface:"jack",
name:"default",
},
frequency:48000,
channel-map:[
"front-left", "front-right",
],
type:"float",
nb-chunk:1024,
volume-name:"MASTER"
}
}