/** * 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); } } }
/** * Stores the volume levels for all applications */ public void StoreCurrentVolumeLevels() { this._WriteIfDebugging("Storing all volume levels"); this._AppVolumes = AudioReducer.GetAppVolumes(); }