参考这个问题:NoDriver calling acmFormatSuggest on Azure
我的托管服务器不允许我安装任何东西或注册dll。我正在使用Naudio混合到mp3文件,它给了我错误NoDriver调用acmFormatSuggest。
我在我的应用程序中下载并安装了Nlayer,并将代码修改为如下所示:
var builderBackground = new Mp3FileReader.FrameDecompressorBuilder(wf => new Mp3FrameDecompressor(wf));
var builderMessage = new Mp3FileReader.FrameDecompressorBuilder(wf => new Mp3FrameDecompressor(wf));
Mp3FileReader mpbacground = new Mp3FileReader(ThumbAudioMP3, builderBackground); Mp3FileReader mpMessage = new Mp3FileReader(stream, builderMessage);
background = WaveFormatConversionStream.CreatePcmStream(mpbacground);
message = WaveFormatConversionStream.CreatePcmStream(mpMessage);
var mixer = new WaveMixerStream32(); var messageOffsetted = new WaveOffsetStream(message, TimeSpan.FromSeconds(0), TimeSpan.Zero, TimeSpan.FromSeconds(seconds));
我在行NoDriver
WaveFormatConversionStream.CreatePcmStream(...
调用acmFormatSuggest错误
有人可以告诉我应该怎么做吗?关于Nlayer的任何文档?
答案 0 :(得分:0)
您不需要WaveFormatConversionStream.CreatePcmStream
行。 Mp3FileReader
类已经发出PCM。