How to play a MP3 file using NAudio

Posted by Rookian on Stack Overflow See other posts from Stack Overflow or by Rookian
Published on 2010-03-21T19:35:21Z Indexed on 2010/03/21 19:41 UTC
Read the original article Hit count: 1105

Filed under:
|
|
WaveStream waveStream = new Mp3FileReader(mp3FileToPlay);
var waveOut = new WaveOut();
waveOut.Init(waveStream); 
waveOut.Play();

This throws an exception:

WaveBadFormat calling waveOutOpen

How can I play a mp3 file with NAudio?

© Stack Overflow or respective owner

Related posts about mp3

Related posts about naudio