Gjsify LogoGjsify Logo

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.

record

Hierarchy

  • AudioInfo

Index

Constructors

Properties

bpf: number

the number of bytes for one frame, this is the size of one sample * channels

field
channels: number

the number of channels

field

the format info of the audio

field
flags: AudioFlags

additional audio flags

field
layout: AudioLayout

audio layout

field

the positions for each channel

field
rate: number

the audio sample rate

field
name: string

Methods

  • Converts among various #GstFormat 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

    • src_fmt: Gst.Format

      #GstFormat of the src_val

    • src_val: number

      value to convert

    • dest_fmt: Gst.Format

      #GstFormat of the dest_val

    Returns [boolean, number]

  • free(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method