{"id":19670036,"url":"https://github.com/native-bindings/libshout","last_synced_at":"2025-04-29T00:31:22.107Z","repository":{"id":75527561,"uuid":"328533793","full_name":"native-bindings/libshout","owner":"native-bindings","description":"libshout C++ bindings to Node.js","archived":false,"fork":false,"pushed_at":"2023-07-05T05:44:34.000Z","size":22,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T23:05:47.713Z","etag":null,"topics":["libshout","xiph"],"latest_commit_sha":null,"homepage":"https://github.com/xiph/Icecast-libshout","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/native-bindings.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-01-11T03:03:32.000Z","updated_at":"2023-11-13T12:51:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"6a800428-ff1f-42a9-b31a-ccaa2670b138","html_url":"https://github.com/native-bindings/libshout","commit_stats":null,"previous_names":["victorqueiroz/libshout"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Flibshout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Flibshout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Flibshout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/native-bindings%2Flibshout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/native-bindings","download_url":"https://codeload.github.com/native-bindings/libshout/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224142852,"owners_count":17262884,"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":["libshout","xiph"],"created_at":"2024-11-11T17:03:47.711Z","updated_at":"2024-11-11T17:03:48.169Z","avatar_url":"https://github.com/native-bindings.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shou-t\n\n### Installation\n\n```\nyarn add libshout\n```\n\n### Usage\n\n```ts\nimport {Shout} from 'libshout';\n\nasync function run() {\n    const shout = new Shout();\n    \n    shout.setHost('127.0.0.1');\n    shout.setProtocol(0);\n    shout.setPort(8000);\n    shout.setPassword('hackme');\n    shout.setMount('/example.ogg');\n    shout.setUser('source');\n    shout.setFormat(0);\n    shout.open();\n    \n    const fd = await fs.promises.open(path.resolve(__dirname,'audio.ogg'), 'r');\n    const tmp = Buffer.allocUnsafe(1024 * 4);\n    \n    while(1) {\n        const {bytesRead} = await fd.read(tmp, 0, tmp.byteLength, null);\n        if(bytesRead) {\n            shout.send(tmp.buffer.slice(0, bytesRead));\n        } else {\n            break;\n        }\n        shout.sync();\n    }\n    shout.close();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnative-bindings%2Flibshout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnative-bindings%2Flibshout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnative-bindings%2Flibshout/lists"}