Quantcast
Channel: naudio Work Item Rss Feed
Viewing all articles
Browse latest Browse all 738

Commented Issue: the Mp3FileReader should not set stream position [16371]

$
0
0
It appears that we could add a few smarts to the Mp3FileReader and make it so that it would not have to use the Position property on the stream. Not all streams (especially web streams) allow the Seek operation. Also, the Mp3FileReader makes no attempt to check the CanSeek flag on the stream.

It would be okay to set stream position if the user wanted to adjust the playback position. However, that functionality should be disabled when the stream does not allow seeking or it should only be functional in some kind of cached data.
Comments: Mp3FileReader is for reading MP3 files. Use the code from the NAudio MP3 streaming demo for streaming MP3s which are not seekable.

Viewing all articles
Browse latest Browse all 738

Trending Articles



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