audiotestsrc

audiotestsrc — Creates audio test signals of given frequency and volume

Synopsis




            GstAudioTestSrc;

Properties


  "freq"                 gdouble               : Read / Write
  "is-live"              gboolean              : Read / Write
  "samplesperbuffer"     gint                  : Read / Write
  "timestamp-offset"     gint64                : Read / Write
  "volume"               gdouble               : Read / Write
  "wave"                 GstAudioTestSrcWave   : Read / Write

Description

Element Information

plugin audiotestsrc
authorStefan Kost <ensonic@users.sf.net>
classSource/Audio

Details

GstAudioTestSrc

typedef struct {
  GstBaseSrc parent;

  void (*process)(GstAudioTestSrc*, gint16 *);

  /* parameters */
  GstAudioTestSrcWaves wave;
  gdouble volume;
  gdouble freq;
    
  /* audio parameters */
  gint samplerate;

  gint samples_per_buffer;
  
  guint64 timestamp;
  guint64 offset;

  gdouble accumulator;

  gboolean tags_pushed;

  GstClockID clock_id;
  GstClockTimeDiff timestamp_offset;
} GstAudioTestSrc;

Properties

The "freq" property

  "freq"                 gdouble               : Read / Write

Frequency of test signal.

Allowed values: [0,20000]

Default value: 440


The "is-live" property

  "is-live"              gboolean              : Read / Write

Whether to act as a live source.

Default value: FALSE


The "samplesperbuffer" property

  "samplesperbuffer"     gint                  : Read / Write

Number of samples in each outgoing buffer.

Allowed values: >= 1

Default value: 1024


The "timestamp-offset" property

  "timestamp-offset"     gint64                : Read / Write

An offset added to timestamps set on buffers (in ns).

Default value: 0


The "volume" property

  "volume"               gdouble               : Read / Write

Volume of test signal.

Allowed values: [0,1]

Default value: 0.8


The "wave" property

  "wave"                 GstAudioTestSrcWave   : Read / Write

Oscillator waveform.

Default value: Sine