Skip to content

Commit

Permalink
Improve BeforeAlarmMelody audio increasing
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirBrejcha committed Aug 24, 2023
1 parent b57f25e commit cdd189b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ final class PlayBeforeAlarmMelody: PlayMelody {
guard let player else { return }
player.volume = 0.1
timeObserver = player.addPeriodicTimeObserver(
forInterval: CMTime(seconds: 5,
forInterval: CMTime(seconds: 15,
preferredTimescale: CMTimeScale(NSEC_PER_SEC)),
queue: DispatchQueue.main
) { _ in
guard player.volume < 0.75 else { return }
guard player.volume < 0.7 else { return }
player.volume += 0.0125
}
}
Expand Down

0 comments on commit cdd189b

Please sign in to comment.