Couldn't he just program the player to write to the 'rating' tag after the file has finished playing? That would solve the issue of possible audio playback glitching would it not?
An option to just import ratings from file metadata would be nice too if the method above doesn't work.