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

Created Unassigned: Changes to channel count? [16434]

$
0
0
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 :-(

Viewing all articles
Browse latest Browse all 738

Trending Articles



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