[][src]Function x42ltc_sys::ltc_encoder_set_volume

pub unsafe extern "C" fn ltc_encoder_set_volume(
    e: *mut LTCEncoder,
    dBFS: f64
) -> c_int

Set the volume of the generated LTC signal

typically LTC is sent at 0dBu ; in EBU callibrated systems that corresponds to -18dBFS. - by default libltc creates -3dBFS

since libltc generated 8bit audio-data, the minimum dBFS is about -42dB which corresponds to 1 bit.

0dB corresponds to a signal range of 127 1..255 with 128 at the center.

@param e encoder handle @param dBFS the volume in dB full-scale (<= 0.0) @return 0 on success, -1 if the value was out of range