{"id":13464019,"url":"https://github.com/unclechu/node-jack-connector","last_synced_at":"2025-03-16T15:30:52.312Z","repository":{"id":57279001,"uuid":"11713862","full_name":"unclechu/node-jack-connector","owner":"unclechu","description":"Bindings JACK-Audio-Connection-Kit for Node.JS","archived":false,"fork":false,"pushed_at":"2023-06-09T20:38:45.000Z","size":368,"stargazers_count":50,"open_issues_count":14,"forks_count":14,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-12T00:31:22.242Z","etag":null,"topics":["audio","ecmascript","jack-audio-connection-kit","javascript","js","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unclechu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2013-07-28T02:12:54.000Z","updated_at":"2023-12-11T17:12:55.000Z","dependencies_parsed_at":"2024-07-31T14:02:10.778Z","dependency_job_id":null,"html_url":"https://github.com/unclechu/node-jack-connector","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-jack-connector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-jack-connector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-jack-connector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unclechu%2Fnode-jack-connector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unclechu","download_url":"https://codeload.github.com/unclechu/node-jack-connector/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221665199,"owners_count":16860191,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","ecmascript","jack-audio-connection-kit","javascript","js","nodejs"],"created_at":"2024-07-31T14:00:32.196Z","updated_at":"2024-10-27T10:49:15.635Z","avatar_url":"https://github.com/unclechu.png","language":"C++","funding_links":[],"categories":["C++","Uncategorized"],"sub_categories":["Uncategorized"],"readme":"Node.JS JACK-connector\n======================\n\nBindings JACK-Audio-Connection-Kit for Node.JS\n\nInstall\n=======\n```bash\nnpm install jack-connector\n```\n\nBuild requirements\n==================\nlibjack2, libjack2-devel\n\nHow to use\n==========\n```javascript\nvar jackConnector = require('jack-connector');\njackConnector.openClientSync('Noize Generator');\njackConnector.registerOutPortSync('output');\n\nfunction audioProcess(err, nframes) {\n\tif (err) {\n\t\tconsole.error(err);\n\t\tprocess.exit(1);\n\t\treturn;\n\t}\n\n\tvar ret = [];\n\tfor (var i=0; i\u003cnframes; i++) ret.push((Math.random() * 2) - 1);\n\treturn { output: ret };\n}\n\njackConnector.bindProcessSync(audioProcess);\njackConnector.activateSync();\njackConnector.connectPortSync('Noize Generator:output', 'system:playback_1');\njackConnector.connectPortSync('Noize Generator:output', 'system:playback_2');\n\n(function mainLoop() { setTimeout(mainLoop, 1000000000); })();\n\nprocess.on('SIGTERM', function () {\n\tjackConnector.deactivateSync();\n\tjackConnector.closeClient(function (err) {\n\t\tif (err) {\n\t\t\tconsole.error(err);\n\t\t\tprocess.exit(1);\n\t\t\treturn;\n\t\t}\n\n\t\tprocess.exit(0);\n\t});\n});\n```\n\nMore examples\n=============\n\n[examples/](./examples/)\n\nAuthor\n======\n\nViacheslav Lotsmanov\n\nLicense\n=======\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fnode-jack-connector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funclechu%2Fnode-jack-connector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funclechu%2Fnode-jack-connector/lists"}