Set AVAudioSession, disable screensaver during playback on macOS

This commit is contained in:
Arkadiusz Fal
2021-10-24 16:01:36 +02:00
parent ca8298a9e9
commit 68b5abd122
6 changed files with 80 additions and 3 deletions

View File

@@ -5,4 +5,8 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
func applicationShouldTerminateAfterLastWindowClosed(_: NSApplication) -> Bool {
true
}
func applicationWillTerminate(_: Notification) {
ScreenSaverManager.shared.enable()
}
}