diff --git a/src/cwtest/cfg/main.cfg b/src/cwtest/cfg/main.cfg index 61796c1..5d8c5c4 100644 --- a/src/cwtest/cfg/main.cfg +++ b/src/cwtest/cfg/main.cfg @@ -74,8 +74,8 @@ serial: [ { - name: "port1", - device: "/dev/ttyACM0", + label: "port1", // User label + device: "/dev/ttyACM0", // Serial device name baud: 38400, bits: 8, stop: 1, @@ -86,7 +86,11 @@ midi: { + + parserBufByteN: 1024, + + }, audio: { @@ -95,28 +99,75 @@ groupL: [ { - enableFl: true, - label: "main", // user label - id: 0, - srate: 48000, - dspFrameCnt: 64 + enableFl: true, // (req) + label: "main", // (req) User label + id: 0, // (req) User id (can also be set at runtime) + srate: 48000, // (req) Sample rate used by all devices in this group + dspFrameCnt: 64 // (req) Size of DSP processing buffers } ], deviceL: [ { - enableFl: true, - label: "main", // User label + // System device name device: "Scarlett 18i20 USB USB Audio", //device: "USB Audio CODEC USB Audio", // device: "HDA Intel PCH CS4208 Analog", - framesPerCycle: 512, // Samples per audio device cycle - cycleCnt: 3, // - inGroupId: 0, // All devices in a group must be ready to source - outGroupId: 0 // or sink data before an audio callback is made for that group + + enableFl: true, // (req) + label: "main", // (req) User label + 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 ], + } + + + + ] + + + } },