-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow user to specify MMDevice when initialising WasapiCapture and WasapiLoopbackCapture #124
Comments
Corrected myself above. |
It is technically not possible to change to device after WasapiCapture got initialized because the initialization process initializes the devices and sets up all native objects based on this device. I can't add the Allowing the user to modify some properties of |
My apologies, I had a feeling that might be confusing. Let me explain. Initialise the object: _capture= new WasapiCapture(); At this point (before you the _capture.Device = newDevice; But you currently can't specify the |
Correct, but as I've said before. You can't set the |
Changing the |
That issue already got resolved by overloading the ctor...? |
It did yes, but that assumes the default endpoint is used whereas this issue aims to address the ability to choose any device. |
What about this code:
|
Yep, I've used that code too. Alright, guess I'll close this issue then. |
I've added a tiny sample that should demonstrate the whole thing... |
My preview issue #123 raised another potential overload, as both
WasapiCapture
andWasapiLoopbackCapture
assume the default device should be used.Currently, you can only change the device after initialising the instance,
but even then, it has already been initialised with the default device settings (eg.. Correction, it's not initialised unless specified in the overload.WaveFormat
), and you can't change theWaveFormat
So there are few potential things here:
MMDevice
to the beginning of the overloads and assume thatnull
uses default.Device
andWaveFormat
after the instance has been initialised.WaveFormat
and apply it to the capture.The text was updated successfully, but these errors were encountered: