Skip to content

Add Windows support for audio playback - #12

Open
alexmclaren wants to merge 1 commit into
citedy:mainfrom
alexmclaren:windows-support
Open

alexmclaren wants to merge 1 commit into
citedy:mainfrom
alexmclaren:windows-support

Conversation

@alexmclaren

Copy link
Copy Markdown

Summary

  • Add Windows platform support using PowerShell MediaPlayer (PresentationCore assembly)
  • Detect Windows environments: Git Bash, Cygwin, MSYS2, MinGW
  • Convert Unix-style paths to Windows paths via cygpath when available
  • Support volume control on Windows (0.0-1.0 scale, same as macOS/Linux)
  • Update README to document Windows in platform support section

Test plan

  • Tested on Windows 11 with Cygwin bash
  • Verified sound plays with correct volume
  • Verified session-start, task-complete, error events trigger correctly
  • Test on Git Bash (MSYS2)
  • Test on WSL with interop

Technical details

Uses System.Windows.Media.MediaPlayer from PresentationCore assembly, which:

  • Supports mp3, wav, and other common formats
  • Provides native volume control (0.0-1.0)
  • Runs in background via & disown equivalent
  • Works on all modern Windows versions (7+)

🤖 Generated with Claude Code

- Detect Windows environments (Git Bash, Cygwin, MSYS2, MinGW)
- Use PowerShell MediaPlayer (PresentationCore) for audio playback
- Support volume control on Windows (0.0-1.0 scale)
- Convert Unix paths to Windows paths via cygpath when available
- Update README to document Windows platform support

Tested on Windows 11 with Cygwin/Git Bash.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant