Companies typically license music for slot machines by negotiating agreements with rights holders, which may include songwriters, music publishers, and record labels. This process involves obtaining the necessary permissions and paying fees that reflect the popularity and usage of the music. The agreements may cover various aspects, such as the duration of the license, the specific songs to be used, and how the music will be incorporated into the game.