Mark Heath
Mark Heath
You might want to consider switching to Wasapi which is the more modern Windows audio API and will be easier to identify devices.
Is it a very large (>2GB) WAV File? If so, try using `MediaFoundationReader` to play it instead.
If you want opus support in .NET the only managed port I'm aware of is [concentus](https://github.com/lostromb/concentus) which sadly hasn't been updated in a while. Otherwise the best option is probably...
Do you need to use `StreamMediaFoundationReader`? Can you provide the path or a URL instead - that tends to work better. I think the file extension is useful information to...
Yes, doesn't seem that `MFCreateSourceReaderFromURL` works with the `.opus` extension. If I had to guess I think maybe using `MFCreateSourceResolverFromURL` and experimenting with flags like `MF_RESOLUTION_CONTENT_DOES_NOT_HAVE_TO_MATCH_EXTENSION_OR_MIME_TYPE` might create an `IMFSource`,...
You need to pay attention to the format that the audio is being captured in. You are likely capturing 16 bit audio with the microphone, and WASAPI loopback will be...
There can be different ways of "muting" speakers. One is to zero out all the samples in the stream. But other ways include turning a volume control that is after...
There is a convenience helper class called `IgnoreDisposeStream` that you can wrap your stream which was intended for exactly this scenario. Changing the current behaviour would unfortunately be a breaking...
NAudio was initially created over 20 years ago. There's a lot I would do differently today if I had the time to rework it (which is unfortunately not at the...
The WASAPI Windows APIs unfortunately do not offer this capability, so I'm afraid I don't know how discord achieve this.