{"id":18747650,"url":"https://github.com/quantum5/winscap","last_synced_at":"2025-04-12T22:29:05.379Z","repository":{"id":149398624,"uuid":"228747394","full_name":"quantum5/winscap","owner":"quantum5","description":"Windows raw sound output capture tool","archived":false,"fork":false,"pushed_at":"2020-03-22T17:43:26.000Z","size":26,"stargazers_count":31,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T16:38:28.690Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/quantum5.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":"2019-12-18T03:09:09.000Z","updated_at":"2025-02-23T05:29:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"86b3a385-4ab6-4d6d-a8df-b6dc5ad6c9e9","html_url":"https://github.com/quantum5/winscap","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fwinscap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fwinscap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fwinscap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quantum5%2Fwinscap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quantum5","download_url":"https://codeload.github.com/quantum5/winscap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248639360,"owners_count":21137833,"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":[],"created_at":"2024-11-07T16:30:49.616Z","updated_at":"2025-04-12T22:29:05.358Z","avatar_url":"https://github.com/quantum5.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `winscap` [![][1]][2]\n\nWindows raw sound output capture tool.\n\n## Usage\n\nYou tell `winscap` how many channels and bits to capture at what sampling rate:\n\n    winscap \u003cchannels\u003e \u003csample rate\u003e \u003cbits per sample\u003e\n\n`winscap` will output a raw PCM stream (signed little-endian) to stdout.\n\nNote that `winscap` uses your audio device in shared mode, so your capture settings\nmust match the Windows output device. By default, this is 16-bit stereo at 48000 Hz.\nIf your capture settings do not match, `winscap` will fail to start.\n\n## Binaries\n\nThe latest stable binaries are available on [GitHub releases][3] ([winscap.exe][4]).\n\nLatest bleeding edge binaries are available as artifacts on [GitHub Actions][2].\n\n## Building\n\nYou need a new enough Visual C++ toolchain. To build, run\n\n    nmake\n\n## Background\n\nI created this tool as a lightweight approach to run [Cava][5] on Windows Subsystem\nfor Linux (WSL) while using sound output from Windows.\n\nTo use with Cava, configure Cava to read from a named pipe inside WSL (we'll use\n`/tmp/cava.fifo` in this example) with the following configuration:\n\n```ini\n[input]\nmethod = fifo\nsource = /tmp/cava.fifo\nsample_rate = 48000\n```\n\nReplace `48000` with whatever sampling rate you use with `winscap`.\n\nThen, run `winscap` as follows:\n\n```sh\n$ mkfifo /tmp/cava.fifo\n$ /mnt/c/path/to/winscap.exe 2 48000 16 \u003e /tmp/cava.fifo\n```\n\nAgain, replace the arguments as appropriate.\n\n  [1]: https://github.com/quantum5/winscap/workflows/build/badge.svg\n  [2]: https://github.com/quantum5/winscap/actions\n  [3]: https://github.com/quantum5/winscap/releases\n  [4]: https://github.com/quantum5/winscap/releases/latest/download/winscap.exe\n  [5]: https://github.com/karlstav/cava\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantum5%2Fwinscap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantum5%2Fwinscap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantum5%2Fwinscap/lists"}