问题描述
BadDeviceId调用waveInGetDevCaps
描述:执行当前Web请求期间发生了未处理的异常。请查看堆栈跟踪以获取有关错误及其源自代码的位置的更多信息。
异常详细信息:NAudio.MmException:BadDeviceId调用waveInGetDevCaps
源错误:
第79行:sourceStream.DeviceNumber = deviceNumber;
第80行:
第81行: sourceStream.WaveFormat = new NAudio.Wave.WaveFormat(44100,NAudio.Wave.WaveIn.GetCapabilities(deviceNumber).Channels);
第82行:
第83行:NAudio .Wave.WaveInProvider waveIn = new NAudio.Wave.WaveInProvider(sourceStream);
它在本地工作正常但在服务器上出错...即时通讯使用麦克风
BadDeviceId calling waveInGetDevCaps
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: NAudio.MmException: BadDeviceId calling waveInGetDevCaps
Source Error:
Line 79: sourceStream.DeviceNumber = deviceNumber;
Line 80:
Line 81: sourceStream.WaveFormat = new NAudio.Wave.WaveFormat(44100, NAudio.Wave.WaveIn.GetCapabilities(deviceNumber).Channels);
Line 82:
Line 83: NAudio.Wave.WaveInProvider waveIn = new NAudio.Wave.WaveInProvider(sourceStream);
its working fine on local but error on server...i m using microphone
推荐答案
这篇关于录制音频在本地工作正常但不检测服务器上的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!