def _db(gain):
    if gain <= 0:
        return -10000
    return max(-10000, min(int(1000 * math.log(min(gain, 1))), 0))
Format a single line.
dataset/ETHPy150Open ardekantur/pyglet/experimental/mt_media/drivers/directsound/__init__.py/_db--crossover with--dataset/ETHPy150Open spranesh/Redhawk/redhawk/common/format_position.py/__FormatLine