filoe / cscore

An advanced audio library, written in C#. Provides tons of features. From playing/recording audio to decoding/encoding audio streams/files to processing audio data in realtime (e.g. applying custom effects during playback, create visualizations,...). The possibilities are nearly unlimited.
Other
2.15k stars 451 forks source link

System.NotImplementedException HResult=0x80004001 #404

Open camellia2027 opened 4 years ago

camellia2027 commented 4 years ago

every samples thow this exception in interopCalls.cs method:internal static unsafe int CallI

filoe commented 4 years ago

In this case the post compiler did not run. All InteropCalls are getting removed by the postcompiler and replaced with CallI IL-Asm instruction. Check the build logs. The post compiler gets called in the post build steps: https://github.com/filoe/cscore/blob/master/CSCore/CSCore.csproj#L687 And has to be build before building cscore. The post compiler sources are located at https://github.com/filoe/cscore/tree/master/Tools/CSCli

EVH1 commented 4 years ago

I also received NotImplementedExceptions when trying to run the samples. It sounds like filoe has pointed out the source of the issue for you.

If that doesn't provide you with a complete fix, there is another source of NotImplementedExceptions if you are not using Windows 8.1. See here: https://stackoverflow.com/questions/52746105/audioplayersample-the-method-or-operation-is-not-implemented