def avg(cp, size):
    _check_params(len(cp), size)
    sample_count = _sample_count(cp, size)
    if sample_count == 0:
        return 0
    return sample_count / sum(_get_samples(cp, size))
dataset/ETHPy150Open jiaaro/pydub/pydub/pyaudioop.py/avg/swapped operands of `/`