C# 成功扫描时禁用符号扫描仪“哔”声?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10943059/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Disable Symbol scanner 'beep' on successful scan?
提问by tweetypi
I'm working with a motorolla MC55 which scans and beeps on a successful scan, I need to disable that feature so that it doesn't play any sounds at all on a scan.
我正在使用 Motorolla MC55,它会在成功扫描时进行扫描并发出蜂鸣声,我需要禁用该功能,以便它在扫描时根本不播放任何声音。
Any ideas how I can accomplish this?
我有什么想法可以做到这一点吗?
采纳答案by Thorsten Dittmar
Try this:
尝试这个:
Symbol.Barcode.Reader reader = new Symbol.Barcode.Reader();
// Other initialization
reader.Parameters.Feedback.Success.BeepTime = 0;
回答by bryoncline
You may want to just adjust the level of the sound:
您可能只想调整声音的级别:
Symbol.Audio.Device MyDevice = (Symbol.Audio.Device)Symbol.StandardForms.SelectDevice.Select(
Symbol.Audio.Controller.Title,
Symbol.Audio.Device.AvailableDevices);
Symbol.Audio.StandardAudio MyAudioDevice = new Symbol.Audio.StandardAudio(MyDevice);
// set the volume of the audio from the settings file.
MyAudioDevice.BeeperVolume = NewLevel;
// set the audio device to nothing
MyAudioDevice.Dispose();
MyAudioDevice = null;
MyDevice = null;
回答by asset mgt
Scan the following barcodes to enable/disable the beep.
扫描以下条形码以启用/禁用蜂鸣声。



