NAudio错误:“NoDriver call acmFormatSuggest” [英] NAudio error: "NoDriver calling acmFormatSuggest"

查看:2153
本文介绍了NAudio错误:“NoDriver call acmFormatSuggest”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,使用NAudio从mp3转换为wav。 (使用 WaveFormatConversionStream.CreatePcmStream()方法)



它在我的开发机器上工作正常,但现在我尝试在一个新的新服务器,并抛出这个错误:


NAudio.MmException:NoDriver调用acmFormatSuggest

在NAudio.MmException.Try(MmResult结果,字符串函数)

在NAudio.Wave.Compression.AcmStream.SuggestPcmFormat(WaveFormat压缩格式)

在NAudio.Wave.WaveFormatConversionStream.CreatePcmStream(WaveStream sourceStream)


我认为NAudio在这里需要的一些依赖关系不在新服务器上。它是什么,我应该从哪里安装?



服务器是一个新鲜的Amazon EC2 Windows 2008 32位实例,包含Web服务器和应用服务器角色安装

解决方案

运行Windows 2008 R2,使用Naudio检测Wav和Mp3文件的长度,我遇到了问题。



我通过以下方式解决了这个问题: https://technet.microsoft.com/en-us/library/cc772567.aspx



本质上,安装桌面体验功能。



以上将需要重新启动服务器。



一旦安装了上述,需要启用任何进一步的,问题已解决。


I've got a project that uses NAudio to convert from mp3 to wav. (using the WaveFormatConversionStream.CreatePcmStream() method)

It worked fine on my development machine but now I'm trying it on a fresh new server and its throwing this error:

NAudio.MmException: NoDriver calling acmFormatSuggest
at NAudio.MmException.Try(MmResult result, String function)
at NAudio.Wave.Compression.AcmStream.SuggestPcmFormat(WaveFormat compressedFormat)
at NAudio.Wave.WaveFormatConversionStream.CreatePcmStream(WaveStream sourceStream)

I assume there is some dependency that NAudio needs here that isn't on the new server. What is it and where should I install it from?

Server is a freshly-hatched Amazon EC2 Windows 2008 32-bit instance with 'web server' and 'app server' roles installed.

解决方案

Running Windows 2008 R2, using Naudio to detect the length of Wav and Mp3 files, i ran into the same problem.

I solved this by following this: https://technet.microsoft.com/en-us/library/cc772567.aspx

Essentially, install the "Desktop Experience" feature.

The above will require a restart of the server.

Once the above was installed, i needed to enable nothing further, the problem was resolved.

这篇关于NAudio错误:“NoDriver call acmFormatSuggest”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆