From 30721b074681d67697867f428840c5c039d22adb Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 29 Nov 2024 17:06:09 -0500 Subject: [PATCH] cfg/main.cfg : Remove dead code, and update websockSrv tester to use cfg. provided parameters rather than hard coded values. --- src/cwtest/cfg/main.cfg | 39 +++++++++------------------------------ 1 file changed, 9 insertions(+), 30 deletions(-) diff --git a/src/cwtest/cfg/main.cfg b/src/cwtest/cfg/main.cfg index 37fac53..01d896e 100644 --- a/src/cwtest/cfg/main.cfg +++ b/src/cwtest/cfg/main.cfg @@ -34,8 +34,15 @@ } websockSrv: { - physRootDir: "~/src/cwtest/src/libcw/html/websockSrvTest", - dfltHtmlPageFn: "test_websocket.html", + + physRootDir: "~/src/cwtest/src/libcw/html/websockSrvTest", // path to 'dfltHtmlPageFn' + dfltHtmlPageFn: "test_websocket.html", // websockets enabled HTML/JS app + port: 5687, // websocket port + rcvBufByteN: 128, // incoming msg's larger than this will be broken into multiple parts + xmtBufByteN: 128, // outgoing msg's larger than this will be broken into multiple parts + queueBlkCnt: 3, // count of memory blocks in the non-blocking queue (See: cwNbMpScQueue) + queueBlkByteCnt: 4096, // size of each non-blocking memory block + timeOutMs: 50, // milliseconds to block waiting for incoming websock messages }, serialSrv: {}, @@ -68,35 +75,7 @@ ] }, - /* - midiSource: { - fname: "~/temp/test.mid", - src: { - ticks_per_quarter: 480, - noteL: [ - { tempo : 120 }, - { bar: 1 } - { meter: [ 4, 4 ] }, - { voiceL: [ [ - { b : [ Cs3, mf ] }, // 1st beat : qtr note - { b : [ [E1 B3] , p ] }, // 2nd beat : two 8ths at p - { b : [ [E2 [A1 B2]] , mf ] }, // 3rd beat : 8th and two 16ths - { b : [ [E3 [A1 [B2 p]]] , mf ] }, // 4th beat : 8th and two 16ths w/ dyn - { b : [ [E4 [R r.]] - ]] - { bar: 2 } - ] - } - }, - */ - midiFileDev: { - fname: "/home/kevin/src/cwtest/src/cwtest/cfg/gutim_full/data1/beck2/record_5/midi.mid" - }, - - //textBuf: {}, - //audioBuf: {}, - //audioDev: {}, audioDevAlsa: {}, audioDevRpt: {}, // print a list of audio device