For a normal user, mp3 of 128-192kbps CBR would be sufficient. If you are an audiophile, you may want to look into FLAC for music files as they are lossless (along with secure CD ripping with dbpoweramp). Otherwise just rip with iTunes or any audio program.
Music quality also depends on the bitrate of the file, as well as the sound card and earphones or speakers.