NAudio를 사용할 때 DirectX 소스 오류가 발생합니다. 나는 DirectX에 관해서 지식이 없기 때문에 약간의 조언을 고맙게 생각할 것입니다.NAudio 및 DirectX 12
이NAudio.Dmo.DmoResampler..ctor System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {F447B69E-1884-4A7E-8055-346F74D6EDB3} failed due to the following error: 80040154 Class not registered (Exception from >HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
NAudio.Dmo.DmoResampler..ctor
NAudio.Wave.ResamplerDmoStream..ctor IWaveProvider inputProvider, WaveFormat outputFormat
NAudio.Wave.WasapiOut.Init IWaveProvider waveProvider
Sound.Support.AudioPlaybackEngine..ctor MMDevice device, Int32 sampleRate, Int32 channelCount
Sound.Manager.PerformInitialization
Analyze.ViewModels.ApplicationViewModel.InitSoundManager
좋아, 그것은 매우 명백 일부 COM 개체가 등록되지 않은, 그래서해야 할 일 :이
다이렉트 X 12과 10 PC 설치 윈도우에서 초기화 NAudio 받고 때를 수신하고 오류이 무엇입니까?
public AudioPlaybackEngine(MMDevice device, int sampleRate = 44100, int channelCount = 2)
{
Device = device;
mOutputDevice = new WasapiOut(device,
AudioClientShareMode.Shared,
true,
200);
mMixer = new MixingSampleProvider(WaveFormat.CreateIeeeFloatWaveFormat(sampleRate, channelCount))
{
ReadFully = true
};
mMixer.MixerInputEnded += OnMixerInputEnded;
mOutputDevice.Init(mMixer);
mOutputDevice.Play();
}
결함은 최초의 호출시에 발생
여기 NAudio를 호출하는 코드입니다.
모든 플랫폼에서 DirectX 11에서 정상적으로 작동합니다.
의견이 있으십니까?
문제가 발생한 고객이 미국에 있고 다른 두 대의 컴퓨터에서보고 있기 때문에 이상하지 않습니다. 최소한 이것은 문제를 찾기 시작할 수있는 길을 제공합니다. (이런 일이 있다면 그것은 평범한 구식 WPF 앱이다.) 포인터를 가져 주셔서 감사합니다. – WyomingDoug