

Tooltip.SetToolTip(btnSoundProperties, lblName.Text) Var icon = IconExtractor.Extract(iconAddress, int.Parse(iconAddress), true) ītnSoundProperties.Image = icon.ToBitmap() Process process = Process.GetProcessById((int)session.GetProcessID) Public VolumePanel(MMDevice device, AudioSessionControl session) / Constructor for session panel creation.

Throw new ArgumentException("This input device is not supported.") SampleChannel.PreVolumeMeter += sampleProvider_StreamVolume SampleChannel = new SampleChannel(bufferedWaveProvider) WaveIn.DataAvailable += waveIn_DataAvailable īufferedWaveProvider = new BufferedWaveProvider(waveIn.WaveFormat) īufferedWaveProvider.DiscardOnBufferOverflow = true Add event handler to retrieve samples from the device Set the number of bytes used by each sample Set wave in to WASAPI capture of the specified device MMDeviceEnumerator devices = new MMDeviceEnumerator() SingleClickWindow.Interval = SystemInformation.DoubleClickTime

(new MenuItem("Open Volume Mixer", (o, e) => )) TrayIcon.ContextMenu = new ContextMenu() TrayIcon.MouseDoubleClick += new MouseEventHandler(TrayIcon_MouseDoubleClick) TrayIcon.MouseClick += new MouseEventHandler(TrayIcon_MouseClick) DefaultMediaDevice = new MMDeviceEnumerator().GetDefaultAudioEndpoint(DataFlow.Render, Role.Multimedia) ĭ += new AudioEndpointVolumeNotificationDelegate(AudioEndpointVolume_OnVolumeNotification)
