Gjsify LogoGjsify Logo

#GstAudioResampler is a structure which holds the information required to perform various kinds of resampling filtering.

record

Hierarchy

  • AudioResampler

Index

Constructors

Properties

name: string

Methods

  • free(): void
  • get_in_frames(out_frames: number): number
  • Get the number of input frames that would currently be needed to produce out_frames from resampler.

    Parameters

    • out_frames: number

      number of input frames

    Returns number

  • get_max_latency(): number
  • get_out_frames(in_frames: number): number
  • Get the number of output frames that would be currently available when in_frames are given to resampler.

    Parameters

    • in_frames: number

      number of input frames

    Returns number

  • resample(in_: object, in_frames: number, out: object, out_frames: number): void
  • Perform resampling on in_frames frames in in and write out_frames to out.

    In case the samples are interleaved, in and out must point to an array with a single element pointing to a block of interleaved samples.

    If non-interleaved samples are used, in and out must point to an array with pointers to memory blocks, one for each channel.

    in may be %NULL, in which case in_frames of silence samples are pushed into the resampler.

    This function always produces out_frames of output and consumes in_frames of input. Use gst_audio_resampler_get_out_frames() and gst_audio_resampler_get_in_frames() to make sure in_frames and out_frames are matching and in and out point to enough memory.

    Parameters

    • in_: object

      input samples

    • in_frames: number

      number of input frames

    • out: object

      output samples

    • out_frames: number

      number of output frames

    Returns void

  • reset(): void
  • update(in_rate: number, out_rate: number, options: Gst.Structure): boolean
  • Update the resampler parameters for resampler. This function should not be called concurrently with any other function on resampler.

    When in_rate or out_rate is 0, its value is unchanged.

    When options is %NULL, the previously configured options are reused.

    Parameters

    • in_rate: number

      new input rate

    • out_rate: number

      new output rate

    • options: Gst.Structure

      new options or %NULL

    Returns boolean

  • Set the parameters for resampling from in_rate to out_rate using method for quality in options.

    Parameters

    • method: AudioResamplerMethod

      a #GstAudioResamplerMethod

    • quality: number

      the quality

    • in_rate: number

      the input rate

    • out_rate: number

      the output rate

    • options: Gst.Structure

      a #GstStructure

    Returns 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