Function

GstPbutils-1.0GstPbutilscodec_utils_opus_create_headerSince 1.8

  • Creates OpusHead header from the given parameters.

    Parameters

    • rate: number

      the sample rate

    • channels: number

      the number of channels

    • channel_mapping_family: number

      the channel mapping family

    • stream_count: number

      the number of independent streams

    • coupled_count: number

      the number of stereo streams

    • channel_mapping: Uint8Array<ArrayBufferLike>

      the mapping between the streams

    • pre_skip: number

      Pre-skip in 48kHz samples or 0

    • output_gain: number

      Output gain or 0

    Returns Gst.Buffer

    The Gst.Buffer containing the OpusHead.

    1.8