-
-
Notifications
You must be signed in to change notification settings - Fork 102
Open
Description
iOS 18 or Simulator.
It appears, that setting volume on single Sound object has no effect? Volume is always the same?
ChatGPT helped me to solve the issue. Just before playing Sound instance, this code solves the volume issues:
do {
try AVAudioSession.sharedInstance().setCategory(
.playback,
mode: .default,
options: []
)
try AVAudioSession.sharedInstance().setActive(true)
} catch {
Helper.sabiprError("Audio session error: \(error.localizedDescription)")
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels