有什么方法可以将 NAudio.Lame 与 Xamarin (Android/iOS) 应用程序一起使用吗?

Is there any way to use NAudio.Lame with Xamarin (Android/iOS) applications?

我正在尝试使用 NAudio.Lame 将录制的音频从 wav 转换为 mp3。我已经使用 NAudio(1.1.0) 安装了 nugget 包 (v 1.1.1),但是当我尝试编译应用程序时,它显示了这条消息:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2): Error XA2002: Can not resolve reference: `LameDLLWrap`, referenced by `NAudio.Lame`. Please add a NuGet package or assembly reference for `LameDLLWrap`, or remove the reference to `NAudio.Lame`. (XA2002) (MyApp.Droid)

GitHub 的 official page 说:

IMPORTANT: Because this wraps Windows native DLLs it will not work on any operating system. It may function with Windows emulation layers but I have never tested this.

是否有机会在 Xamarin Android/iOS 项目中使用它?

根据 Jason 的评论和 NAudio.Lame 官方页面,答案是否定的,因为它依赖于 Windows iOS/Android.

上不存在的 DLL。