This was done after the players had already been created. To ensure that everything gets set properly it is necessary to pass the desired sample rate to the device's constructor and let it make sure that a proper sample rate gets set.
The new version keeps the non-MusLib code of both files and replaces most of the rest with code from Chocolate Doom.