it's simple code:
NAudio.Wave.WaveStream waveReader = new NAudio.Wave.Mp3FileReader(@"C:\Users\Seiris\Music\Nakajima Megumi\Houkago Overflow\02 Get it on-flying rock.mp3");
I tried both frameworks: 4.0 client profile and 4.5.
I could see it's working correctly on the case 4.0, but in the other case 4.5, it crashes.
On SuggestFormat() of AcmStream.cs:
-> MmException.Try(AcmInterop.acmFormatSuggest(IntPtr.Zero, compressedFormat, suggestedFormat, Marshal.SizeOf(suggestedFormat), AcmFormatSuggestFlags.FormatTag), "acmFormatSuggest");
this line causes crashing of application.
I think this problem's about differences between 4.0 below with 4.5, especially for marshaling or interop services. Seems like a little change will fix it. :)
NAudio.Wave.WaveStream waveReader = new NAudio.Wave.Mp3FileReader(@"C:\Users\Seiris\Music\Nakajima Megumi\Houkago Overflow\02 Get it on-flying rock.mp3");
I tried both frameworks: 4.0 client profile and 4.5.
I could see it's working correctly on the case 4.0, but in the other case 4.5, it crashes.
On SuggestFormat() of AcmStream.cs:
-> MmException.Try(AcmInterop.acmFormatSuggest(IntPtr.Zero, compressedFormat, suggestedFormat, Marshal.SizeOf(suggestedFormat), AcmFormatSuggestFlags.FormatTag), "acmFormatSuggest");
this line causes crashing of application.
I think this problem's about differences between 4.0 below with 4.5, especially for marshaling or interop services. Seems like a little change will fix it. :)