Sending sound to various audio devices

Can I play sound on a playback device that is not set as the default playback device? I need to play multiple files simultaneously across multiple output devices.

Does anyone know a solution for .net? (WITH#)

Thank!

+5
source share
3 answers

you will need to upgrade to a lower level API. You can try to find the C # shell for Wasapi, ASIO, DirectSound or MediaFoundation. Perhaps the XNA infrastructure can do this work, which is managed by the infrastructure through directX

+1
source

I played with a similar problem.

CreateWaveOut(). . :

MMDevice device = new MMDeviceEnumerator()
     .EnumerateAudioEndPoints(DataFlow.Render, DeviceState.All)
     .FirstOrDefault(d => d.ID == "yourplaybackdeviceid");
IWavePlayer waveOut = new WasapiOut(device, AudioClientShareMode.Shared, false, latency);

naudio , Download- > Release, .

+1
0

All Articles