AgsLinearInterpolateUtil

AgsLinearInterpolateUtil — util functions to linear interpolate

Functions

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);

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);

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);

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);

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);

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);

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);

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);

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