示例#1
0
        /**
         * Stores volume levels for any applications we haven't already stored them for
         */
        public void StoreNewVolumeLevels()
        {
            this._WriteIfDebugging("Updating volume level list");

            foreach (AppVolume appVolume in AudioReducer.GetAppVolumes())
            {
                if (!this._AppVolumes.Any(existingAppVolume => existingAppVolume.ProcessID == appVolume.ProcessID && existingAppVolume.Path == appVolume.Path))
                {
                    this._AppVolumes.Add(appVolume);
                }
            }
        }
示例#2
0
 /**
  * Stores the volume levels for all applications
  */
 public void StoreCurrentVolumeLevels()
 {
     this._WriteIfDebugging("Storing all volume levels");
     this._AppVolumes = AudioReducer.GetAppVolumes();
 }