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.
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.