In the bandicam settings you tell it which sound device you want to record which is defaulted to your windows sound. If you play the music on a different device that is not part of the windows sound, say a usb headset, then I don't think it'd be picked up by bandicam.