         self.initialVolume = 0.0;
         self.interval = 30;
         self.delta = 0.0;
+        self.fadeLength = 1800.0;
     }
     
     /**

        self.timer.invalidate();
        
        NSSound.setSystemVolume(Float(initialVolume));
    }
}

import Foundation

class VolumeControl {
    /// Time (in seconds) between volume changes
    let interval: UInt;
    
    /// Timer used for scheduling
    var timer: Timer;
    
    /// Initial volume when schedule started
    var initialVolume: Double;
    
    /// Amount to change volume;
    var delta: Double;
    
    /// Length of fade (in seconds)
    var fadeLength: Double;
    
    /**
     
