         }
     }
     
-    func play(data: Data?, delay: TimeInterval = 0, numberOfLoops: Int = 0, volume: Float = 1, completionHandler: ((URL?, Bool) -> Void)? = nil) {
+    public func play(data: Data?, delay: TimeInterval = 0, numberOfLoops: Int = 0, volume: Float = 1, completionHandler: ((URL?, Bool) -> Void)? = nil) {
         guard let data = data else {
             return
         }

//MARK: - AVAudioPlayerDelegate

extension AudioPlayer: AVAudioPlayerDelegate {
    @objc func audioPlayerDidFinishPlaying(_ player: AVAudioPlayer, successfully flag: Bool) {
        completionHandler?(player.url, flag)
    }
}

        }
    }
    
    public func pause() {
        player?.pause()
    }
    
    public func stop() {
        player?.stop()
    }
    
