'Set the volume.
The volume is defined as an integer in range [0..100].
The volume scale is linear.
Returns :class:`True` if call is successful, otherwise :class:`False`.'

def set_volume(self, volume):

    validation.check_integer(volume, min=0, max=100)
    if (self._mixer is None):
        return False
    with _mixer_error_handling(self._mixer):
        result = self._mixer.set_volume(volume).get()
        validation.check_instance(result, bool)
        return result
    return False
