This project has moved. For the latest updates, please go here.

NAudio Multiple audio out

Nov 21, 2012 at 11:14 AM

Hi,

    In NAudio from where you are calling

[ImportingConstructor]
public AudioPlaybackPanel([ImportMany]IEnumerable<IOutputDevicePlugin> outputDevicePlugins)

{
            InitializeComponent();
            LoadOutputDevicePlugins(outputDevicePlugins);
}

I want to play multiple sound in same time in different sound card. how you get "outputDevicePlugins" value, when the constructor is called. How can I choose audio device using NAudio without User Control.

I was trying this from last 2 month please tell the solution that you have did in NAudio.Thanks in advance.

 

Coordinator
Nov 21, 2012 at 11:35 AM

To play sound in multiple soundcards, you need an output device per soundcard. So for example create two instances of WaveOut, and set the DeviceNumber property on each one.

Mark

 

Nov 21, 2012 at 12:28 PM

hi,

   In NAudio how I get output device and set device number...

 

Thanks & Regards,

Hinshin

Coordinator
Nov 21, 2012 at 12:35 PM

var outputDevice = new WaveOut()
outputDevice.DeviceNumber = 1;

Nov 21, 2012 at 3:08 PM

Thankyou I got the solution.

Nov 22, 2012 at 4:47 AM
Edited Nov 22, 2012 at 4:53 AM

Hi,

   Thanks for your quick response.