|
|
|
|
@ -27,7 +27,7 @@ class AppDelegate : NSObject, UIApplicationDelegate { |
|
|
|
|
UNUserNotificationCenter.current().delegate = self |
|
|
|
|
|
|
|
|
|
self._initSchemaIfNeeded() |
|
|
|
|
self._activateAudioSession() |
|
|
|
|
Conductor.maestro.activateAudioSession() |
|
|
|
|
|
|
|
|
|
Sound.computeSoundDurationsIfNecessary() |
|
|
|
|
|
|
|
|
|
@ -66,17 +66,6 @@ class AppDelegate : NSObject, UIApplicationDelegate { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
fileprivate func _activateAudioSession() { |
|
|
|
|
Logger.log("_activateAudioSession") |
|
|
|
|
do { |
|
|
|
|
let audioSession: AVAudioSession = AVAudioSession.sharedInstance() |
|
|
|
|
try audioSession.setCategory(.playback, options: .duckOthers) |
|
|
|
|
try audioSession.setActive(true) |
|
|
|
|
} catch { |
|
|
|
|
Logger.error(error) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func application(_ application: UIApplication, continue userActivity: NSUserActivity, restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void) -> Bool { |
|
|
|
|
|
|
|
|
|
if userActivity.interaction == nil { |
|
|
|
|
|