Mark Heath
Mark Heath
Yes, I attempted to implement this a while back but it unfortunately didn't work because I think you also have to switch over to ActivateAudioInterfaceAsync which is a fairly disruptive...
Yes, looks like the same approach. I've also seen some C# code doing the same thing, so I know its possible. Just awkward to rework the existing WASAPI code to...
I have seen similar issues with remove desktop, but not really sure the cause. What device number were you using?
My recommendation is to do format conversion to PCM up front (which most of the file readers life Mp3FileReader, MediaFoundationReader already do), then get to `ISampleProvider` as soon as possible...
You also need to Dispose the `player` (your WaveFileReader) once you have finished using it.
Seems like there might be something unusual about your WAV file. Can you load it with `WaveFileReader`
Yes, a bit of a shame - the read extra data should definitely check and at the very least throw a better exception. Obviously as you point out, the marshalling...
I mean, what is the underlying WaveFormat format tag? Normal PCM WAV files don't have extra data like this, so you are obviously looking at an unusual compression format or...
NAudio simply calls through to Windows APIs, so you get whatever Windows reports, based on the options you chose. The names reported by each device are determined by the writers...
The key interface in NAudio for playing audio is `IWavePlayer`. To support NAudio on android, you'd need to adapt whatever the AudioTrack can do to the `IWavePlayer` interface. You wouldn't...