def METHOD_NAME(self, p):
    # On Android, numpy does not exist and this is not supported
    if numpy is None:
        return
    if type(p) not in (int, float) or p <= 0:
        raise InvalidValue(f'pitch should be a positive number, not {p}')
    if p == 1:
        return
    buf = pygame.sndarray.array(self.sound)
    _buf = []
    for i in range(int(float(len(buf)) / p)):
        _buf.append(buf[int(float(i) * p)])
    self.sound = pygame.sndarray.make_sound(
        numpy.array(_buf, dtype=u"int16"))