     }
 
     deinit {
+        player.setQueue(with: MPMediaItemCollection(items: []))
+        NotificationCenter.default.removeObserver(self)
         player.endGeneratingPlaybackNotifications()
     }
     

        return FXAudioPlayerEngine(asset: asset)
    }
}

        }
        
        set(rate) {
            guard rate != timePitch.rate else {
                return
            }
            
            timePitch.rate = rate

            //Enabling bypass when at center position saves us significant CPU cycles, battery, etc.
