robmikh / CaptureVideoSample

A sample that records video using the Windows.Graphics.Capture and Windows.Media.Transcoding APIs.
MIT License
8 stars 8 forks source link

Loopback audio recording is broken #3

Open Adam777Z opened 23 hours ago

Adam777Z commented 23 hours ago

The "wmt-audio" branch sample does not work correctly.

robmikh commented 23 hours ago

Which configurations have you tried? I just pushed a new commit to fix an issue when no audio source is selected.

This branch is still a work in progress and has some known issues:

Having said that, recording using the microphone/audio input devices should work just fine.

Adam777Z commented 22 hours ago

I tried the defaults with "Record system audio".

robmikh commented 22 hours ago

Unfortunately, that doesn't work in the sample at this time. I'd take a look the official sample for loopback audio: https://github.com/microsoft/windows-classic-samples/tree/main/Samples/ApplicationLoopback

What you'll need to do is feed the audio samples along with the format to the audio graph API. I'm not an expert on the audio side, so I haven't had the time required to untangle my issue with the quantum started events. You may have better luck asking in one of the Microsoft Q&A communities or on one of the Microsoft sample repos.

Adam777Z commented 21 hours ago

I see. OK. Thanks for the help.

I am looking forward to your finished sample, whenever that may be.