There is no definitive answer, as the rules of golf depends on the level of the tournament you are playing at. Some people believe that playing music on a golf course violates the spirit of the game, while others believe that it's a personal preference and players should be allowed to play however they please. Ultimately, it's up to each individual golfer to decide whether they think playing music on a golf course is acceptable or not.
Some people find that playing music helps them focus and stay in rhythm, while others find that it disrupts their concentration and ruins their game. There are pros and cons to both sides of the argument, so it's ultimately up to the player to decide what works best for them.