badbuthcer: System Shock 1 has the music in .midi .mp3 and .flac. How did they get access to a flac version of a 20-year-old game's music?
In this particular case, a lot of it is (or was, I haven't checked recently) fairly unsatisfactory.
The .mid are probably put together from data ripped from the game. It's not a straight-forward conversion since the music changes dynamically when there's combat and such, so the composition used here may be arbitary. They seem to play at the wrong speed too. Probably put together by a third party, not gog.
Quite likely the .flac have been made by putting the .mid through a crappy midi player and the .mp3 by putting the .flac through mp3 compression. Both of these are rather useless.
As far as other games are concerned, some used to have their music as audio tracks on the CD or a few even had a soundtrack CD released, both of those are great sources for a .flac. If such is not available, the original producers may still have higher quality recordings around. And failing all that you can still rip the music from the game or just record it as it plays.