Open christopher-bonitz opened 7 years ago
Darn it.
Figured out what went wrong, I built my code from the example in cscore/Samples/RecordToWma/Program.cs This uses the WasapiLoopbackCapture, but in my case that didn't work.
Don't think this is a bug then, but a clarification in the sample would be nice. :)
Glad to hear that. I ll take a look at the sample.
I'm sorry for coming back to this so late. What should be clarified?
I've debugged this as far as I can without pulling the source.
My goal is to record a small sound file using the microphone, inside an existing WPF application. There exists two active recording devices, one of them is both communication device and multimedia device. It is not chosen per default, so I'm trying to select it manually.
This is the (somewhat simple) code that should do the trick.
But alas, no success. Message: IAudioClient::Initialize caused an error: 0x88890003, "Unknown HRESULT".
Relevant stacktrace
Bonus info: The device property of WasapiLoopbackCapture is set correctly, it is the initialization that seems to have a problem here.
I've taken a peak at the source, no dice I'm afraid.