'Set the player\'s volume level (0-100).'

def cmd_setvol(self, conn, vol):

    vol = cast_arg(int, vol)
    if ((vol < VOLUME_MIN) or (vol > VOLUME_MAX)):
        raise BPDError(ERROR_ARG, u'volume    out    of    range')
    self.volume = vol
