Sets the volume to 1 if it's not a number or the volume is not specified, and makes the volume range fall between 0 and 1 inclusively if it's greater or smaller.