Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Best way to play audio file

$
0
0

First, I don't know where you got the code sample you show above, but it is not a good way to use NAudio. waveOut.Play just starts playback, and waveOut will get disposed before playback is complete.

The best place to see how to use NAudio in a real application is the NAudioDemo application source code that is part of NAudio. It has lots of examples of how to use NAudio for playback.

Mark


Viewing all articles
Browse latest Browse all 5831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>