AgsLinearInterpolateUtil

AgsLinearInterpolateUtil — util functions to linear interpolate

Stability Level

Stable, unless otherwise indicated

Functions

Types and Values

Object Hierarchy

    GBoxed
    ╰── AgsLinearInterpolateUtil

Includes

#include <ags/audio/ags_linear_interpolate_util.h>

Description

These utility functions allow you to fill linear interpolated data.

Functions

ags_linear_interpolate_util_fill_s8 ()

void
ags_linear_interpolate_util_fill_s8 (gint8 *destination,
                                     gint8 *source,
                                     guint buffer_length,
                                     gdouble factor);

ags_linear_interpolate_util_fill_s8 is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_fill_s16 ()

void
ags_linear_interpolate_util_fill_s16 (gint16 *destination,
                                      gint16 *source,
                                      guint buffer_length,
                                      gdouble factor);

ags_linear_interpolate_util_fill_s16 is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_fill_s24 ()

void
ags_linear_interpolate_util_fill_s24 (gint32 *destination,
                                      gint32 *source,
                                      guint buffer_length,
                                      gdouble factor);

ags_linear_interpolate_util_fill_s24 is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_fill_s32 ()

void
ags_linear_interpolate_util_fill_s32 (gint32 *destination,
                                      gint32 *source,
                                      guint buffer_length,
                                      gdouble factor);

ags_linear_interpolate_util_fill_s32 is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_fill_s64 ()

void
ags_linear_interpolate_util_fill_s64 (gint64 *destination,
                                      gint64 *source,
                                      guint buffer_length,
                                      gdouble factor);

ags_linear_interpolate_util_fill_s64 is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_fill_float ()

void
ags_linear_interpolate_util_fill_float
                               (gfloat *destination,
                                gfloat *source,
                                guint buffer_length,
                                gdouble factor);

ags_linear_interpolate_util_fill_float is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_fill_double ()

void
ags_linear_interpolate_util_fill_double
                               (gdouble *destination,
                                gdouble *source,
                                guint buffer_length,
                                gdouble factor);

ags_linear_interpolate_util_fill_double is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_fill_complex ()

void
ags_linear_interpolate_util_fill_complex
                               (AgsComplex *destination,
                                AgsComplex *source,
                                guint buffer_length,
                                gdouble factor);

ags_linear_interpolate_util_fill_complex is deprecated and should not be used in newly-written code.

Perform linear interpolate on buffer and return the result in output_buffer .

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the buffer length

 

factor

the factor to interpolate

 

Since: 3.8.0


ags_linear_interpolate_util_get_type ()

GType
ags_linear_interpolate_util_get_type (void);

Types and Values

AGS_TYPE_LINEAR_INTERPOLATE_UTIL

#define AGS_TYPE_LINEAR_INTERPOLATE_UTIL         (ags_linear_interpolate_util_get_type())

struct AgsLinearInterpolateUtil

struct AgsLinearInterpolateUtil {
  gpointer source;
  guint source_stride;

  gpointer destination;
  guint destination_stride;

  guint buffer_length;
  guint format;
  guint samplerate;

  guint audio_buffer_util_format;

  gdouble factor;
};