it's simple code:
NAudio.Wave.WaveStream waveReader = new NAudio.Wave.Mp3FileReader(@"C:\~~.mp3");
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. I guess so because it solved temporarily when i changed my target framework by 4.5 to 4.0.
ahh.. seems like it's related with https://naudio.codeplex.com/discussions/415247.
Comments: what codecs do you have installed on your machine?
NAudio.Wave.WaveStream waveReader = new NAudio.Wave.Mp3FileReader(@"C:\~~.mp3");
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. I guess so because it solved temporarily when i changed my target framework by 4.5 to 4.0.
ahh.. seems like it's related with https://naudio.codeplex.com/discussions/415247.
Comments: what codecs do you have installed on your machine?