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

Commented Unassigned: issue with Mp3FileReader [16459]

$
0
0
Hi Mark
Thnaks for your greate n audio
i use naudio 1.7 and have problem with Mp3FileReader.
when i use Mp3FileReader and give it path sometimes my program stops on this line and everiting stop
and suddenly it continue.

if (File.Exists(@"mp3 path"))
{
try
{
mp3Reader = new Mp3FileReader(@"mp3 path");
waveOut = new WaveOut();
waveOut.PlaybackStopped += new EventHandler<StoppedEventArgs>(PlaybackStoppedEventHandler);

waveOut.Init(mp3Reader);
waveOut.Play();
}
}

my program must not stops like this.could you please tell where i missed or is wrong?

Regard Mohammad Ehsan Afsari
Comments: Mp3FileReader makes a table of contents in its constructor which may take a few hundred milliseconds on a long file. Try using MediaFoundationReader if possible for a better performing option.

Viewing all articles
Browse latest Browse all 738

Trending Articles



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