Windows: allow PCM output to write to a named pipe
Open
Nobody has claimed this yet.
meta:feature-request
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
Expected behavior of the wanted feature
I'd love to be able to use the PCM audio output module to write to a Windows named pipe, like \\.\pipe\mpv-pcm-output, to be able to synchronously read it from another piece of software. I tried configuring it:
ao=pcm
ao-pcm-file=\\.\pipe\mpv-pcm-output
but it doesn't work as of now.
Log file
Relevant part:
[ao/pcm] File: \\.\pipe\mpv-pcm-output (WAVE)
[ao/pcm] PCM: Samplerate: 44100 Hz Channels: 2 Format: float
[ao/pcm] Failed to open \\.\pipe\mpv-pcm-output for writing!
[ao] Failed to initialize audio driver 'pcm'
Could not open/initialize audio device -> no sound.
Audio: no audio
Exiting... (Interrupted by error)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the PCM audio output module and trace how the ao-pcm-file path is opened on Windows. Use the provided log as the baseline, then verify that a Windows named-pipe path can support synchronous PCM reads without the current initialization failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- audio-video-rtc
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100