{"id":26040247,"url":"https://github.com/wnkz/mcgain","last_synced_at":"2026-04-30T06:38:17.078Z","repository":{"id":280894136,"uuid":"943520518","full_name":"wnkz/mcgain","owner":"wnkz","description":"A simple command-line tool to control audio device volume levels on macOS","archived":false,"fork":false,"pushed_at":"2025-03-05T21:19:26.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T22:28:25.858Z","etag":null,"topics":["coreaudio","macos","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wnkz.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":"2025-03-05T20:56:05.000Z","updated_at":"2025-03-05T21:30:13.000Z","dependencies_parsed_at":"2025-03-05T22:28:36.572Z","dependency_job_id":"419c51ea-554a-4f97-a3c2-faca15eb7636","html_url":"https://github.com/wnkz/mcgain","commit_stats":null,"previous_names":["wnkz/mcgain"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wnkz/mcgain","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnkz%2Fmcgain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnkz%2Fmcgain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnkz%2Fmcgain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnkz%2Fmcgain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wnkz","download_url":"https://codeload.github.com/wnkz/mcgain/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wnkz%2Fmcgain/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259562625,"owners_count":22877051,"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":["coreaudio","macos","zig"],"created_at":"2025-03-07T12:08:50.134Z","updated_at":"2026-04-30T06:38:17.027Z","avatar_url":"https://github.com/wnkz.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎤 mcgain\n\nA simple command-line tool to control audio device volume levels on macOS.\n\n\u003e [!NOTE]\n\u003e This is my first project written in Zig. While I'm learning the language and trying to follow best practices, there might be some non-idiomatic code.\n\n## ✨ Features\n\n- List available audio devices\n- Get volume levels for input/output channels\n- Set volume levels for input/output channels\n- Support for both scalar (0-1) and decibel values\n\n## Prerequisites\n\n- macOS (uses CoreAudio)\n- Zig 0.13.0 or later\n\n## Installation\n\n```bash\ngit clone https://github.com/wnkz/mcgain.git\ncd mcgain\nzig build\n```\n\nThe binary will be available at `zig-out/bin/mcgain`\n\n## 🚀 Usage\n\n### List available devices\n```bash\nmcgain ls\n```\n\n### Get volume levels\n```bash\nmcgain get-levels              # Show volume levels in scalar (0-1)\nmcgain get-levels -d           # Show volume levels in decibels\nmcgain get-levels -n           # Show device names\n```\n\n### Set volume levels\n```bash\nmcgain set-levels \u003cdevice_id\u003e \u003cin|out\u003e \u003cvalue\u003e      # Set volume using scalar (0-1)\nmcgain set-levels -d \u003cdevice_id\u003e \u003cin|out\u003e \u003cvalue\u003e   # Set volume using decibels\nmcgain set-levels -n \"Device Name\" \u003cin|out\u003e \u003cvalue\u003e # Set volume by device name\n```\n\n## Building from source\n\n```bash\nzig build        # Build the project\nzig build run    # Build and run\n```\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Written in [Zig](https://ziglang.org/)\n- Uses macOS CoreAudio Framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwnkz%2Fmcgain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwnkz%2Fmcgain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwnkz%2Fmcgain/lists"}