def getsample(cp, size, i):
    _check_params(len(cp), size)
    if not (0 <= i < len(cp) / size):
        raise error("Index out of range")
    return _get_sample(cp, size, i)
dataset/ETHPy150Open jiaaro/pydub/pydub/pyaudioop.py/getsample/original