         case AudioProcessing = "AVAudioSessionCategoryAudioProcessing"
         case MultiRoute = "AVAudioSessionCategoryMultiRoute"
     }
-
+    
     /// Enum of available buffer lengths
     /// from Shortest: 2 power 5 samples (32 samples = 0.7 ms @ 44100 kz)
     /// to Longest: 2 power 12 samples (4096 samples = 92.9 ms @ 44100 Hz)

                throw error
            }
        }

        // Preferred IO Buffer Duration

        do {
            try session.setPreferredIOBufferDuration(bufferLength.duration)
        } catch let error as NSError {
            print ("AKAsettings Error: Cannot set Preferred IOBufferDuration  to \(bufferLength.duration) ( = \(bufferLength.samplesCount) samples)")
            print ("AKAsettings Error: \(error))")
            throw error
        }

        // Activate session
        do {
            try session.setActive(true)


/// Global settings for AudioKit
@objc public class AKSettings: NSObject {
    
    /// Enum of available AVAudioSession Categories
    public enum SessionCategory: String {
        case Ambient = "AVAudioSessionCategoryAmbient"
