Playing music from player's personal music library

Bad music can get quite annoying in a game and I was thinking if it was possible to program something so that a player can listen to their own music library? Very old games did this sometimes, but I haven’t seen it for decades.