     public func setVolume(to value: Float) {
         guard !isMuted else { return }
         
+        currentVolume = value
+        
         allPlayers.forEach {
             $1.volume = value
         }

            $1.pause()
        }
        
        if isMuted {
            avPlayer.volume = 0
        }
        
        avPlayer.play()
    }
    

        set {
            UserDefaults.standard.set(newValue, forKey: mutedKey)
            allPlayers.forEach {
                $1.volume = newValue ? 0 : currentVolume
            }
        }
    }
