This project has moved and is read-only. For the latest updates, please go here.

NAudio Audio Playback

Nov 20, 2012 at 11: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 12:30 PM

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 4:41 AM
Edited Nov 21, 2012 at 6: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 11:04 PM

set the DeviceNumber property of WaveOut.

Jan 26, 2014 at 8:20 PM
markheath wrote:
set the DeviceNumber property of WaveOut.
WaveOut doesn't appear to have DeviceNumber as a property...?
Jan 26, 2014 at 8:24 PM
Well it does.
Jan 26, 2014 at 8:36 PM
Edited Jan 26, 2014 at 8: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