Beginning of the player package. Doesn't do any sample generation yet...