Got the following exception:
An unhandled exception of type 'System.InvalidOperationException' occurred in NAudio.dll
Additional information: Got a frame with channel mode Mono, in an MP3 with 2 channels. Mp3FileReader does not support changes to channel count.
code looks something like this:
this.ActiveFile = "some_valid.mp3";
waveOutDevice = new WaveOut();
audioFileReader = new AudioFileReader(this.ActiveFile); <----- Exception here
Works fine for most files I throw at it, so presumably this particular file is encoded in a weird way?
Is there a way to test for this, and work around it? Other audio players have no trouble playing this particular file. I'm kind of at a loss at how to handle this.
Apologies if this has been brought up before, searching for this exception didn't yield any results :-(
An unhandled exception of type 'System.InvalidOperationException' occurred in NAudio.dll
Additional information: Got a frame with channel mode Mono, in an MP3 with 2 channels. Mp3FileReader does not support changes to channel count.
code looks something like this:
this.ActiveFile = "some_valid.mp3";
waveOutDevice = new WaveOut();
audioFileReader = new AudioFileReader(this.ActiveFile); <----- Exception here
Works fine for most files I throw at it, so presumably this particular file is encoded in a weird way?
Is there a way to test for this, and work around it? Other audio players have no trouble playing this particular file. I'm kind of at a loss at how to handle this.
Apologies if this has been brought up before, searching for this exception didn't yield any results :-(