René's URL Explorer Experiment


Title: Support ALSA plugin devices (dmix) for dual mono setups by balloob · Pull Request #193 · Sendspin/sendspin-python-cli · GitHub

Open Graph Title: Support ALSA plugin devices (dmix) for dual mono setups by balloob · Pull Request #193 · Sendspin/sendspin-python-cli

X Title: Support ALSA plugin devices (dmix) for dual mono setups by balloob · Pull Request #193 · Sendspin/sendspin-python-cli

Description: Summary Refactor audio device handling to new audio_devices.py Allow --audio-device to accept raw ALSA device names (e.g., dmixer, olohuone) in addition to numeric indices and name prefixes When a string doesn't match any PortAudio-enumerated device, it's validated and passed directly to sounddevice, letting PortAudio's ALSA backend open named plugin devices like dmix This enables multiple daemon instances to share a single sound card via dmix for multi-room dual mono setups Root cause PortAudio only enumerates hardware ALSA devices, not plugin devices (dmix, plug, etc.). When one daemon opens a hardware device via PortAudio, it acquires exclusive access, preventing the second daemon from even enumerating devices — sounddevice.query_devices() returns an empty list. ALSA dmix is designed for device sharing, but PortAudio bypasses it by opening the raw hardware directly. Changes sendspin/audio.py: Extended AudioDevice with optional alsa_device_name field and device_id property; updated type signatures to accept int | str | None for device parameters sendspin/cli.py: Added _try_alsa_device() fallback in device resolution; updated help text and --list-audio-devices output with ALSA hint on Linux sendspin/tui/app.py and sendspin/daemon/daemon.py: Use device_id instead of index for format detection README.md: Documented ALSA device name usage with dual mono example Usage # Room 1: left channel via dmix sendspin daemon --name "Living Room" --audio-device olohuone # Room 2: right channel via dmix sendspin daemon --name "Kitchen" --audio-device keittio Test plan Verify --list-audio-devices still works and shows ALSA hint on Linux Verify numeric device index selection still works (--audio-device 0) Verify name prefix selection still works (--audio-device "MacBook") Verify raw ALSA device name works on a Linux system with dmix configured Verify two daemons can run simultaneously with different dmix devices Verify invalid ALSA device name gives a clear error message Fixes #58 https://claude.ai/code/session_01G86ZS2aLyMqx3rDwQnsaUS

Open Graph Description: Summary Refactor audio device handling to new audio_devices.py Allow --audio-device to accept raw ALSA device names (e.g., dmixer, olohuone) in addition to numeric indices and name prefixes When a...

X Description: Summary Refactor audio device handling to new audio_devices.py Allow --audio-device to accept raw ALSA device names (e.g., dmixer, olohuone) in addition to numeric indices and name prefixes When a...

Opengraph URL: https://github.com/Sendspin/sendspin-python-cli/pull/193

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:bfc439de-2d17-ade5-e33c-f318463b35e8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC9C2:A3A4:D18603:1192748:6AED664B
html-safe-noncee0ae1ac789ad4b6fbac9d03bedd531ad69728976f7f07251d48824e227a176c8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOUMyOkEzQTQ6RDE4NjAzOjExOTI3NDg6NkFFRDY2NEIiLCJ2aXNpdG9yX2lkIjoiNjE5NzYxNTUxOTA0MTY3Njg3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac991cc3a91dbbd24975a0f4f77a013af8cc5b07073718c247bf6b5b5756b07e18
hovercard-subject-tagpull_request:3439883388
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/Sendspin/sendspin-python-cli/pull/193/files
twitter:imagehttps://avatars.githubusercontent.com/u/1444314?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1444314?s=400&v=4
og:image:altSummary Refactor audio device handling to new audio_devices.py Allow --audio-device to accept raw ALSA device names (e.g., dmixer, olohuone) in addition to numeric indices and name prefixes When a...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/Sendspin/sendspin-python-cli git https://github.com/Sendspin/sendspin-python-cli.git
octolytics-dimension-user_id214994244
octolytics-dimension-user_loginSendspin
octolytics-dimension-repository_id1109978202
octolytics-dimension-repository_nwoSendspin/sendspin-python-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1109978202
octolytics-dimension-repository_network_root_nwoSendspin/sendspin-python-cli
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/Sendspin/sendspin-python-cli/pull/193/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSendspin%2Fsendspin-python-cli%2Fpull%2F193%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FSendspin%2Fsendspin-python-cli%2Fpull%2F193%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=Sendspin%2Fsendspin-python-cli
Reloadhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files
Reloadhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files
Reloadhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files
Sendspinhttps://github.com/Sendspin
sendspin-python-clihttps://github.com/Sendspin/sendspin-python-cli
Codehttps://github.com/Sendspin/sendspin-python-cli
Issues25 (25)https://github.com/Sendspin/sendspin-python-cli/issues
Pull requests11 (11)https://github.com/Sendspin/sendspin-python-cli/pulls
Actionshttps://github.com/Sendspin/sendspin-python-cli/actions
Projectshttps://github.com/Sendspin/sendspin-python-cli/projects
Security and qualityhttps://github.com/Sendspin/sendspin-python-cli/security
Insightshttps://github.com/Sendspin/sendspin-python-cli/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FSendspin%2Fsendspin-python-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FSendspin%2Fsendspin-python-cli%2Fissues%2Fnew%2Fchoose
balloobhttps://github.com/balloob
mainhttps://github.com/Sendspin/sendspin-python-cli/tree/main
claude/investigate-issue-58-ROGTXhttps://github.com/Sendspin/sendspin-python-cli/tree/claude/investigate-issue-58-ROGTX
Conversation 2 https://github.com/Sendspin/sendspin-python-cli/pull/193
Commits 19 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits
Checks 1 https://github.com/Sendspin/sendspin-python-cli/pull/193/checks
Files changed https://github.com/Sendspin/sendspin-python-cli/pull/193/files
Please reload this pagehttps://github.com/Sendspin/sendspin-python-cli/pull/193/files
Support ALSA plugin devices (dmix) for dual mono setups https://github.com/Sendspin/sendspin-python-cli/pull/193/files#top
Show all changes 19 commits https://github.com/Sendspin/sendspin-python-cli/pull/193/files
8d579c3 Support ALSA plugin devices (dmix) for dual mono setups claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/8d579c3bc100c023e360c588ee358613b0921870
fdb4406 Refactor: pass AudioDevice objects instead of device IDs claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/fdb4406295a104d9163de434b678180d134b78a3
00ec3f7 Make AudioDevice required in format detection functions claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/00ec3f7e764827757671ac0e4f41ef8d1db2a6cd
c0c7f07 List ALSA plugin devices in --list-audio-devices output claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/c0c7f0764ca42d8c8e6846a15e5375caecc34ae9
d51dc29 Extract audio device functions from cli.py into audio_devices.py claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/d51dc299a115bc92572b0cf4c176b57a9351af49
14cfa1f Document audio_devices.py in CLAUDE.md claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/14cfa1f2bb3cc76044e6b18afa5e3674ef8ad53c
447524f Refine audio_devices extraction: keep list_audio_devices in cli.py claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/447524fb5614574721aacb8191ca417c04fee714
a1bc791 Tighten resolve_audio_format: require str, don't log claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/a1bc791683a3ef4405ea8dff4c18fc49946efd1c
b9c7a43 Catch PortAudio OSError around query_devices() call in list_audio_dev… claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/b9c7a4386a4f1b44908feb443baa9c73b575b9f3
eaebcf2 Inline resolve_audio_format into cli.py claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/eaebcf25e2c1b58c96984c544ecc340fe770a640
f1085f5 Update audio_devices.py description to match actual file contents claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/f1085f56a6fa91514a03c78520da3d83dc4a59ac
219cc46 Use English names in ALSA device examples claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/219cc463eb3facbfedba4007e59734a938ae5243
052aec5 Add __post_init__ validation to AudioDevice claude Mar 24, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/052aec5cda41aa7d0a295d649b3a9aa09b5d57d9
2a5353e Fix audio hint balloob Mar 25, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/2a5353ed5c72c631ccbc7f473c3f7213d9c50f05
84169f5 Replace DeviceError with ValueError balloob Mar 25, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/84169f5cdc707cbea821b9cbffef4c244993772d
864eedf Move AudioDevice and query_devices to audio_devices.py balloob Mar 25, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/864eedf85191a789ff04b41ee43821edeb2fe3cf
9bc9d55 Move audio format functions from audio.py to audio_devices.py balloob Mar 25, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/9bc9d55d2adc1f8a6fa155889303c74b8ff34f3f
42d2246 Fix audio hint balloob Mar 25, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/42d22469d699503b118e40a2a6926a3d5429e54c
3615bd1 Gate ALSA device fallback to Linux only balloob Mar 25, 2026 https://github.com/Sendspin/sendspin-python-cli/pull/193/commits/3615bd170444609e26f2ea6e4426304d458940f8
Clear filters https://github.com/Sendspin/sendspin-python-cli/pull/193/files
Please reload this pagehttps://github.com/Sendspin/sendspin-python-cli/pull/193/files
Please reload this pagehttps://github.com/Sendspin/sendspin-python-cli/pull/193/files
AGENTS.md https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
README.md https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
alsa_volume.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-f8108be359a0c3661382192e6577f9c7bed294c8bcde869a6db0b5951ab8dd2a
audio.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
audio_connector.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3421ff6530e137dcd05c843b76620f9e9c723c1ac747757e333d142930a076df
audio_devices.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-a7e2062450094389cd70ed23a687bbb0228874eaa7a58dfb07cf8f32d3a50359
cli.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-f0e74d71877172f9006712f276552071e25665e4139b77c755a2da144f0f7c49
daemon.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-94f82c11d8983b6c4866a62379c1dcb0c76fdb36b530412cf68f46bea7091ebe
discovery.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-ea79b4f8065488a611bfdcb723a056779afecc2d6d1988aaffb591105baf7905
hardware_volume.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-db3a2f5df7f8e0c5d0669d96b547f259adca157522fcbf40cd58b83f5761cc22
app.py https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-e3a66f07f38788b0c1d71df3fb8fa7bebf4b424d8f0defc6068ae0a898a69e34
AGENTS.mdhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
View file https://github.com/Sendspin/sendspin-python-cli/blob/3615bd170444609e26f2ea6e4426304d458940f8/AGENTS.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Sendspin/sendspin-python-cli/pull/193/{{ revealButtonHref }}
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-a54ff182c7e8acf56acfd6e4b9c3ff41e2c41a31c9b211b2deb9df75d9a478f9
README.mdhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/Sendspin/sendspin-python-cli/blob/3615bd170444609e26f2ea6e4426304d458940f8/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Sendspin/sendspin-python-cli/pull/193/{{ revealButtonHref }}
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
sendspin/alsa_volume.pyhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-f8108be359a0c3661382192e6577f9c7bed294c8bcde869a6db0b5951ab8dd2a
View file https://github.com/Sendspin/sendspin-python-cli/blob/3615bd170444609e26f2ea6e4426304d458940f8/sendspin/alsa_volume.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Sendspin/sendspin-python-cli/pull/193/{{ revealButtonHref }}
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-f8108be359a0c3661382192e6577f9c7bed294c8bcde869a6db0b5951ab8dd2a
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-f8108be359a0c3661382192e6577f9c7bed294c8bcde869a6db0b5951ab8dd2a
sendspin/audio.pyhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
View file https://github.com/Sendspin/sendspin-python-cli/blob/3615bd170444609e26f2ea6e4426304d458940f8/sendspin/audio.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Sendspin/sendspin-python-cli/pull/193/{{ revealButtonHref }}
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3c6320801d183c6d0dab582c65ede68a37480b662dfee02712db7c9824804479
sendspin/audio_connector.pyhttps://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3421ff6530e137dcd05c843b76620f9e9c723c1ac747757e333d142930a076df
View file https://github.com/Sendspin/sendspin-python-cli/blob/3615bd170444609e26f2ea6e4426304d458940f8/sendspin/audio_connector.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/Sendspin/sendspin-python-cli/pull/193/{{ revealButtonHref }}
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3421ff6530e137dcd05c843b76620f9e9c723c1ac747757e333d142930a076df
https://github.com/Sendspin/sendspin-python-cli/pull/193/files#diff-3421ff6530e137dcd05c843b76620f9e9c723c1ac747757e333d142930a076df
Please reload this pagehttps://github.com/Sendspin/sendspin-python-cli/pull/193/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.