Hello, I'm looking for a way to plug my guitar with my laptop in order to play music from YouTube and play guitar over it and it must go out in my headphones.
What I need to know is what program would I need, how to plug everything together and what gear if needed.
I have tried with a behringer cord using Guitar Rig Demo and when I play guitar it goes in my headphones but the music from YouTube goes in my laptop speakers

Thanks for the answers