Beispiel #1
0
        public Game1()
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            graphics.IsFullScreen = false;

            _mics = new MicrophoneComponent(this);
        }
Beispiel #2
0
        /// <summary>
        /// initialize the static fields
        /// </summary>
        public MicrophoneHelper(IMicrophoneComponent microphoneComponent, string deviceCaptureName = "")
        {
            MicrophoneName = !string.IsNullOrEmpty(deviceCaptureName) ? deviceCaptureName : microphoneComponent.DefaultMicName;
            _Mic           = microphoneComponent.Microphones[MicrophoneName];
            MicSensitivity = microphoneComponent.DefaultSensitvity;

            CurrentVolume = 0.0f;
            AverageVolume = 0.0f;
        }