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

NAudio Audio Playback

Nov 20, 2012 at 10:07 AM


   I have to make audio play back in FORM without using User Control, from where you are loading "outputDevicePlugins". You have passed outputDevicePlugins parameter where it calls the user control. 

Nov 20, 2012 at 11:30 AM

No need to copy that example, as it is intended to show all possible output modes.


Just do something like:

this.player = new WaveOut();

var reader = new AudioFileReader(filename);



Nov 21, 2012 at 3:41 AM
Edited Nov 21, 2012 at 5:00 AM


   I need to set audio output device(sound card) how can i assign that using naudio in normal form in normal form. can you please tell the sample code.

Nov 27, 2012 at 10:04 PM

set the DeviceNumber property of WaveOut.

Jan 26, 2014 at 7:20 PM
markheath wrote:
set the DeviceNumber property of WaveOut.
WaveOut doesn't appear to have DeviceNumber as a property...?
Jan 26, 2014 at 7:24 PM
Well it does.
Jan 26, 2014 at 7:36 PM
Edited Jan 26, 2014 at 7:38 PM
Oh right, I must be doing something wrong then - doesn't show up in intellisense for me.

Must have the wrong class I guess