Class (GI Struct)

GstAudio-1.0GstAudioAudioInfo

Information describing audio properties. This information can be filled in from GstCaps with gst_audio_info_from_caps().

Use the provided macros to access the info in this structure.

Index

Constructors

Properties

bpf: number
channels: number
rate: number
$gtype: GType<AudioInfo>

Methods

  • Converts among various Gst.Format types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw audio, GST_FORMAT_DEFAULT corresponds to audio frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT.

    Parameters

    Returns [boolean, number]

    TRUE if the conversion was successful.