VST AVAudioplayer Drum Player

Hi all, I just released few months ago a standalone MAC OSX Beat Player, using AVAudioPlayer which made it possible to control the speed/bpm of my complex beats(wave samples). Now I’m trying to make a VST version with the same drum player using AVAudioplayer as the audio player. Somehow is possible to “connect” the existing code to the VST SDK? I could find and recreate few VST examples but they are all audio processing, no audio/wave players. Any direction or example would be greatly appreciated.