From 8803443312d0cde52efb6cdc88f37fb6922a2847 Mon Sep 17 00:00:00 2001 From: just-software-dev Date: Thu, 26 Sep 2024 05:11:55 -0300 Subject: [PATCH] Sounds fix --- Adamant/Services/AdamantNotificationService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Adamant/Services/AdamantNotificationService.swift b/Adamant/Services/AdamantNotificationService.swift index f4f9020b1..030963239 100644 --- a/Adamant/Services/AdamantNotificationService.swift +++ b/Adamant/Services/AdamantNotificationService.swift @@ -401,7 +401,7 @@ private extension AdamantNotificationsService { return } - try? AVAudioSession.sharedInstance().setCategory(.playback) + try? AVAudioSession.sharedInstance().setCategory(.soloAmbient) try? AVAudioSession.sharedInstance().setActive(true) audioPlayer = try? AVAudioPlayer(contentsOf: url, fileTypeHint: AVFileType.mp3.rawValue) audioPlayer?.volume = 1.0