There is typically a songwriter’s royalty, a performer’s royalty, a producer royalty.
Sometimes those are the same person, but often not.
Performers don't get much royalty. It's not in perpetuity. When Diddy sampled Every Breath You Take, Sting made a fortune, And he's still raking in money. Even though only sound sample is the guitar of Andy Summers, he did not make $0.01 off of it.