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"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

DispatcherQueue null when trying to update Ui property in ViewModel(尝试更新ViewModel中的Ui属性时DispatcherQueue为空)
Drawing over all windows on multiple monitors(在多个监视器上绘制所有窗口)
Programmatically show the desktop(以编程方式显示桌面)
c# Generic Setlt;Tgt; implementation to access objects by type(按类型访问对象的C#泛型集实现)
InvalidOperationException When using Context Injection in ASP.Net Core(在ASP.NET核心中使用上下文注入时发生InvalidOperationException)
LINQ many-to-many relationship, how to write a correct WHERE clause?(LINQ多对多关系,如何写一个正确的WHERE子句?)