fix a glitch sound on pause and play (#69)

This commit is contained in:
Dimitris C
2024-03-10 19:23:58 +02:00
committed by GitHub
parent decb12641d
commit 38d0bdb5d9
@@ -514,6 +514,7 @@ open class AudioPlayer {
/// Pauses the audio engine and stops the player's hardware
private func pauseEngine() {
guard isEngineRunning else { return }
audioEngine.reset()
audioEngine.pause()
player.auAudioUnit.stopHardware()
Logger.debug("engine paused ⏸", category: .generic)