NAudio 错误:“NoDriver 调用 acmFormatSuggest"

NAudio error: quot;NoDriver calling acmFormatSuggestquot;(NAudio 错误:“NoDriver 调用 acmFormatSuggest)

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

问题描述

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

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 调用 acmFormatSuggest
在 NAudio.MmException.Try(MmResult 结果,字符串函数)
在 NAudio.Wave.Compression.AcmStream.SuggestPcmFormat(WaveFormatcompressedFormat)
在 NAudio.Wave.WaveFormatConversionStream.CreatePcmStream(WaveStream sourceStream)

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)

我假设 NAudio 需要的一些依赖项不在新服务器上.它是什么,我应该从哪里安装它?

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?

服务器是一个新孵化的 Amazon EC2 Windows 2008 32 位实例,安装了Web 服务器"和应用服务器"角色.

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

推荐答案

运行Windows 2008 R2,使用Naudio检测Wav和Mp3文件长度,遇到同样的问题.

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

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

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

基本上,安装桌面体验"功能.

Essentially, install the "Desktop Experience" feature.

以上需要重启服务器.

安装完以上之后,我不需要再启用任何东西,问题就解决了.

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

这篇关于NAudio 错误:“NoDriver 调用 acmFormatSuggest"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:NAudio 错误:“NoDriver 调用 acmFormatSuggest"

基础教程推荐