Naudio的MMDeviceEnumerator的InvalidCastException错误

时间:2016-03-18 06:53:42

标签: exception naudio

每当我尝试创建一个新的MMDeviceEnumerator时,我都会收到错误

MMDeviceEnumerator DevEnum = new MMDeviceEnumerator();

给了我

An unhandled exception of type 'System.InvalidCastException' occurred in NAudio.dll

Additional information: Unable to cast object of type 'MMDeviceEnumerator' to type 'NAudio.CoreAudioApi.Interfaces.MMDeviceEnumeratorComObject'.

我在Windows 7 64位上使用VS Community 2015,Naudio 1.7.3。有人有解决方案吗? NAudio的Midi API似乎运行良好。

0 个答案:

没有答案