 
     /// Convenience method accessible from Objective-C
     @objc open static func setSession(category: SessionCategory, options: UInt) throws {
-        try setSession(category: category, with: AVAudioSessionCategoryOptions(rawValue: options))
+        if options == 0 {
+            try setSession(category: category)
+        } else {
+            try setSession(category: category, with: AVAudioSessionCategoryOptions(rawValue: options))
+        }
     }
 
     /// Set the audio session type

                do {
                    try session.setCategory(SessionCategoryString[category]!)
                } catch let error as NSError {
                    AKLog("AKAsettings Error: Cannot set AVAudioSession Category to \(SessionCategoryString[category])")
                    AKLog("AKAsettings Error: \(error))")
                    throw error
                }
            }

        do {
            try session.setActive(true)
        } catch let error as NSError {
            AKLog("AKSettings Error: Cannot set AVAudioSession.setActive to true")
            AKLog("AKSettings Error: \(error))")
            throw error
        }

