Ejemplo n.º 1
0
        public void DesabilitarVolume()
        {
            Symbol.Audio.Device MyDevice = (Symbol.Audio.Device)Symbol.StandardForms.SelectDevice.Select(
                Symbol.Audio.Controller.Title,
                Symbol.Audio.Device.AvailableDevices);

            //check the device type
            switch (MyDevice.AudioType)
            {
            //if standard device
            case Symbol.Audio.AudioType.StandardAudio:
                MyAudioController = new Symbol.Audio.StandardAudio(MyDevice);
                break;

            //if simulated device
            case Symbol.Audio.AudioType.SimulatedAudio:
                MyAudioController = new Symbol.Audio.SimulatedAudio(MyDevice);
                break;

            default:
                break;
            }


            this.MyAudioController.BeeperVolume = 0;
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Initialize the reader.
        /// </summary>
        private void InitAudio()
        {
            Symbol.Audio.Device MyAudioDevice = (Symbol.Audio.Device)SelectDevice.Select(
                Symbol.Audio.Controller.Title,
                Symbol.Audio.Device.AvailableDevices);

            if (MyAudioDevice == null)
            {
                throw new SymbolRFGunException("Unable to initialize audio device.");
            }

            //check the device type
            switch (MyAudioDevice.AudioType)
            {
            //if standard device
            case Symbol.Audio.AudioType.StandardAudio:
                MyAudioController = new Symbol.Audio.StandardAudio(MyAudioDevice);
                break;

            //if simulated device
            case Symbol.Audio.AudioType.SimulatedAudio:
                MyAudioController = new Symbol.Audio.SimulatedAudio(MyAudioDevice);
                break;

            default:
                throw new SymbolRFGunException("Unknown Device Type");
            }
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Initialize beep notifier.
        /// </summary>
        private bool InitNotifier()
        {
            // ***** Newest gun (newest operating system) uses Symbol.Audio.dll
            // ***** in place of Symbol.Notification.dll

            // Select Device from device list
            Symbol.Audio.Device MyDevice = (Symbol.Audio.Device)Symbol.StandardForms.SelectDevice.Select(
                Symbol.Audio.Controller.Title,
                Symbol.Audio.Device.AvailableDevices);

            MyAudioController = new Symbol.Audio.StandardAudio(MyDevice);
            MyAudioController.BeeperVolume = 1;
            //MyAudioController.PlayAudio(500, 1000);
            // *****


            //if (device == null) return false;
            //Symbol.Notification.Device device = new Symbol.Notification.Device("Beeper", Symbol.Notification.NotifyType.BEEPER, 2);
            //MyBeeper = new Symbol.Notification.Beeper(device);
            //MyBeeper.Duration = 1000;
            //MyBeeper.Frequency = 3000;
            //MyBeeper.Volume = 1;

            return(true);
        }