First of all, let me say that this is an awesome project! It's saving me months of work!
I had built an application using the V 1.3 release of naudio and it was working very well. I updated to changeset 64823 and mp3 playback stopped working. I'm getting a "Not a supported encoding" exception from the DmoMediaType::SetWaveFormat
Based on the change log and the demo app, I removed any PCM conversions and calls to BlockAlignReductionStream. I even tried putting them back to see if that would make a difference, but no-joy.
I'm creating the input stream like this:
Dim mp3Reader As WaveStream = New Mp3FileReader(fileName)
inputStream = New WaveChannel32(mp3Reader)
Starting the playback like this:
If waveOutDevice Is Nothing Then
timer1.Interval = 1000
timer1.AutoReset = True
AddHandler timer1.Elapsed, AddressOf TimerHandler
The CreateWaveOut method looks like this:
Private Sub CreateWaveOut()
waveOutDevice = New WasapiOut(AudioClientShareMode.Shared, True, 100)
Again, this worked great using the 1.3 release, just not now with the latest change set.
Any help would be appreciated.