NAudio error: quot;NoDriver calling acmFormatSuggestquot;(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"
基础教程推荐
- 如何激活MC67中的红灯 2022-01-01
- rabbitmq 的 REST API 2022-01-01
- 有没有办法忽略 2GB 文件上传的 maxRequestLength 限制? 2022-01-01
- SSE 浮点算术是否可重现? 2022-01-01
- 将 XML 转换为通用列表 2022-01-01
- 为什么Flurl.Http DownloadFileAsync/Http客户端GetAsync需要 2022-09-30
- 将 Office 安装到 Windows 容器 (servercore:ltsc2019) 失败,错误代码为 17002 2022-01-01
- MS Visual Studio .NET 的替代品 2022-01-01
- 如何在 IDE 中获取 Xamarin Studio C# 输出? 2022-01-01
- c# Math.Sqrt 实现 2022-01-01