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

New Post: Using MP3 from project resources

$
0
0
AudioFileReader is just a container class that uses Mp3FileReader, WaveFileReader etc. based on the filename,
[if filename.endswith(".mp3")] and so on....
So, actually it doesn´t seem to support streams and you have 2 possibilities to choose:

1) Copy the AudioFileReader.cs class from NAudio source and adjust it for stream support
2) Assign readers yourself, as I have done e.g. here: Url

I´d recommend using option 1, as it is an easier approach for beginners. You also have to look up if your used readers can handle streams, e.g. Mp3FileReader can read from a stream.

Viewing all articles
Browse latest Browse all 5831

Trending Articles



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