Naudio'的InvalidCastException错误;MMS设备枚举器
每当我尝试创建一个新的MMDeviceEnumerator时,都会出现一个错误Naudio'的InvalidCastException错误;MMS设备枚举器,exception,naudio,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 'MMDeviceEnu
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似乎工作得很好。你知道这一点吗?