cfg/main.cfg : Updates to 'io' block.
This commit is contained in:
parent
44df01eb92
commit
c26dc6ebf4
@ -74,8 +74,8 @@
|
|||||||
|
|
||||||
serial: [
|
serial: [
|
||||||
{
|
{
|
||||||
name: "port1",
|
label: "port1", // User label
|
||||||
device: "/dev/ttyACM0",
|
device: "/dev/ttyACM0", // Serial device name
|
||||||
baud: 38400,
|
baud: 38400,
|
||||||
bits: 8,
|
bits: 8,
|
||||||
stop: 1,
|
stop: 1,
|
||||||
@ -86,7 +86,11 @@
|
|||||||
|
|
||||||
|
|
||||||
midi: {
|
midi: {
|
||||||
|
|
||||||
|
|
||||||
parserBufByteN: 1024,
|
parserBufByteN: 1024,
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
audio: {
|
audio: {
|
||||||
@ -95,28 +99,75 @@
|
|||||||
|
|
||||||
groupL: [
|
groupL: [
|
||||||
{
|
{
|
||||||
enableFl: true,
|
enableFl: true, // (req)
|
||||||
label: "main", // user label
|
label: "main", // (req) User label
|
||||||
id: 0,
|
id: 0, // (req) User id (can also be set at runtime)
|
||||||
srate: 48000,
|
srate: 48000, // (req) Sample rate used by all devices in this group
|
||||||
dspFrameCnt: 64
|
dspFrameCnt: 64 // (req) Size of DSP processing buffers
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
deviceL: [
|
deviceL: [
|
||||||
{
|
{
|
||||||
enableFl: true,
|
// System device name
|
||||||
label: "main", // User label
|
|
||||||
device: "Scarlett 18i20 USB USB Audio",
|
device: "Scarlett 18i20 USB USB Audio",
|
||||||
//device: "USB Audio CODEC USB Audio",
|
//device: "USB Audio CODEC USB Audio",
|
||||||
// device: "HDA Intel PCH CS4208 Analog",
|
// device: "HDA Intel PCH CS4208 Analog",
|
||||||
framesPerCycle: 512, // Samples per audio device cycle
|
|
||||||
cycleCnt: 3, //
|
enableFl: true, // (req)
|
||||||
inGroupId: 0, // All devices in a group must be ready to source
|
label: "main", // (req) User label
|
||||||
outGroupId: 0 // or sink data before an audio callback is made for that group
|
userId: 0, // (opt) User id (can also be set at runtime)
|
||||||
|
framesPerCycle: 512, // (req) Samples per audio device cycle
|
||||||
|
cycleCnt: 3, // (req) Count of device cycle buffers.
|
||||||
|
inGroup: "main", // (opt) All devices in a group must be 'ready' to source
|
||||||
|
outGroup: "main", // (opt) or sink data before an audio callback is made for that group
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
},
|
||||||
|
|
||||||
|
socket: {
|
||||||
|
|
||||||
|
maxSocketCnt: 10,
|
||||||
|
recvBufByteCnt: 4096,
|
||||||
|
threadTimeOutMs: 50,
|
||||||
|
|
||||||
|
socketL: [
|
||||||
|
{
|
||||||
|
enableFl: true, // (req)
|
||||||
|
label: "sock0", // (req)
|
||||||
|
userId: 0, // (opt)
|
||||||
|
port: 5687, // (req) This sockets port number
|
||||||
|
timeOutMs: 50, // (req) Timeout used for blocking sockets.
|
||||||
|
|
||||||
|
// Attributes:
|
||||||
|
// blocking or non-blocking,
|
||||||
|
// udp or tcp,
|
||||||
|
// listen, broadcast
|
||||||
|
// reuse_addr, reuse_port, multi_cast_ttl, multi_cast_loop
|
||||||
|
// stream
|
||||||
|
attrL: [ udp, blocking ],
|
||||||
|
|
||||||
|
// Automatically connect to this remote socket.
|
||||||
|
// remoteAddr: "192.168.0.10", // (opt)
|
||||||
|
// remotePort: 5687 // (opt)
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
enableFl: true, // (req)
|
||||||
|
label: "sock1", // (req)
|
||||||
|
userId: 1, // (opt)
|
||||||
|
port: 5688, // (req) This sockets port number
|
||||||
|
timeOutMs: 50, // (req) Timeout used for blocking sockets.
|
||||||
|
|
||||||
|
attrL: [ udp, blocking ],
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user