private void UnregisterSession(AudioSessionWrapper wrapper)
        {
            _wrappers.Remove(wrapper.ProcessID);

            wrapper.SimpleVolumeChanged -= OnSimpleVolumeChanged;
            wrapper.SessionDisconnected -= OnSessionRemoved;
            wrapper.Dispose();
        }
        private AudioSessionWrapper RegisterSession(AudioSessionControl session)
        {
            var wrapper = new AudioSessionWrapper(session);

            _wrappers[wrapper.ProcessID] = wrapper;

            wrapper.SimpleVolumeChanged += OnSimpleVolumeChanged;
            wrapper.SessionDisconnected += OnSessionRemoved;

            return(wrapper);
        }