Function ope_encoder_deferred_init_with_mapping

Source
pub unsafe extern "C" fn ope_encoder_deferred_init_with_mapping(
    enc: *mut OggOpusEnc,
    family: c_int,
    streams: c_int,
    coupled_streams: c_int,
    mapping: *const c_uchar,
) -> c_int
Expand description

Deferred initialization of the encoder to force an explicit channel mapping. This can be used to override the default channel coupling, but using it for regular surround will almost certainly lead to worse quality.

§Arguments

  • enc [in,out] - Encoder
  • family - Mapping family (0 for mono/stereo, 1 for surround)
  • streams - Total number of streams
  • coupled_streams - Number of coupled streams
  • mapping - Channel mapping

§Returns

Error code