Add changing of bits per sample

This function ensures that sounds that are loaded in get converted to
the correct 24 bit format.