All modern devices are equipped with a special module that allows you to play drums to other instruments' accompaniment. Some have a built-in set of tracks, while others let you connect your player and pick any recording. In headphones, you will hear the song and your drums; the main thing is to balance the sound.