AgsPhaseShiftUtil

AgsPhaseShiftUtil — phase shift util

Stability Level

Stable, unless otherwise indicated

Functions

Includes

#include <ags/audio/ags_phase_shift_util.h>

Description

Utility functions to compute phase shift.

Functions

ags_phase_shift_util_compute_s8 ()

void
ags_phase_shift_util_compute_s8 (gint8 *destination,
                                 gint8 *source,
                                 guint buffer_length,
                                 guint samplerate,
                                 gdouble frequency,
                                 gdouble amount,
                                 gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0


ags_phase_shift_util_compute_s16 ()

void
ags_phase_shift_util_compute_s16 (gint16 *destination,
                                  gint16 *source,
                                  guint buffer_length,
                                  guint samplerate,
                                  gdouble frequency,
                                  gdouble amount,
                                  gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0


ags_phase_shift_util_compute_s24 ()

void
ags_phase_shift_util_compute_s24 (gint32 *destination,
                                  gint32 *source,
                                  guint buffer_length,
                                  guint samplerate,
                                  gdouble frequency,
                                  gdouble amount,
                                  gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0


ags_phase_shift_util_compute_s32 ()

void
ags_phase_shift_util_compute_s32 (gint32 *destination,
                                  gint32 *source,
                                  guint buffer_length,
                                  guint samplerate,
                                  gdouble frequency,
                                  gdouble amount,
                                  gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0


ags_phase_shift_util_compute_s64 ()

void
ags_phase_shift_util_compute_s64 (gint64 *destination,
                                  gint64 *source,
                                  guint buffer_length,
                                  guint samplerate,
                                  gdouble frequency,
                                  gdouble amount,
                                  gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0


ags_phase_shift_util_compute_float ()

void
ags_phase_shift_util_compute_float (gfloat *destination,
                                    gfloat *source,
                                    guint buffer_length,
                                    guint samplerate,
                                    gdouble frequency,
                                    gdouble amount,
                                    gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0


ags_phase_shift_util_compute_double ()

void
ags_phase_shift_util_compute_double (gdouble *destination,
                                     gdouble *source,
                                     guint buffer_length,
                                     guint samplerate,
                                     gdouble frequency,
                                     gdouble amount,
                                     gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0


ags_phase_shift_util_compute_complex ()

void
ags_phase_shift_util_compute_complex (AgsComplex *destination,
                                      AgsComplex *source,
                                      guint buffer_length,
                                      guint samplerate,
                                      gdouble frequency,
                                      gdouble amount,
                                      gdouble phase);

Compute phase shift of audio buffer at frequency with amount with max radian 2 * M_PI.

Parameters

destination

the destination audio buffer

 

source

the source audio buffer

 

buffer_length

the audio buffer's length

 

samplerate

the samplerate

 

frequency

the frequency

 

amount

the amount

 

phase

the phase

 

Since: 3.8.0