ags_audio_buffer_util

ags_audio_buffer_util

Functions

#define AGS_AUDIO_BUFFER_S8()
#define AGS_AUDIO_BUFFER_S16()
#define AGS_AUDIO_BUFFER_S24()
#define AGS_AUDIO_BUFFER_S32()
#define AGS_AUDIO_BUFFER_S64()
#define AGS_AUDIO_BUFFER_FLOAT()
#define AGS_AUDIO_BUFFER_DOUBLE()
guint ags_audio_buffer_util_format_from_soundcard ()
guint ags_audio_buffer_util_get_copy_mode ()
signed char * ags_audio_buffer_util_morph_s8 ()
signed short * ags_audio_buffer_util_morph_s16 ()
signed long * ags_audio_buffer_util_morph_s24 ()
signed long * ags_audio_buffer_util_morph_s32 ()
signed long long * ags_audio_buffer_util_morph_s64 ()
float * ags_audio_buffer_util_morph_float ()
double * ags_audio_buffer_util_morph_double ()
void * ags_audio_buffer_util_morph ()
signed char * ags_audio_buffer_util_resample_s8 ()
signed short * ags_audio_buffer_util_resample_s16 ()
signed long * ags_audio_buffer_util_resample_s24 ()
signed long * ags_audio_buffer_util_resample_s32 ()
signed long long * ags_audio_buffer_util_resample_s64 ()
float * ags_audio_buffer_util_resample_float ()
double * ags_audio_buffer_util_resample_double ()
void * ags_audio_buffer_util_resample ()
void ags_audio_buffer_util_copy_s8_to_s8 ()
void ags_audio_buffer_util_copy_s8_to_s16 ()
void ags_audio_buffer_util_copy_s8_to_s24 ()
void ags_audio_buffer_util_copy_s8_to_s32 ()
void ags_audio_buffer_util_copy_s8_to_s64 ()
void ags_audio_buffer_util_copy_s8_to_float ()
void ags_audio_buffer_util_copy_s8_to_double ()
void ags_audio_buffer_util_copy_s16_to_s8 ()
void ags_audio_buffer_util_copy_s16_to_s16 ()
void ags_audio_buffer_util_copy_s16_to_s24 ()
void ags_audio_buffer_util_copy_s16_to_s32 ()
void ags_audio_buffer_util_copy_s16_to_s64 ()
void ags_audio_buffer_util_copy_s16_to_float ()
void ags_audio_buffer_util_copy_s16_to_double ()
void ags_audio_buffer_util_copy_s24_to_s8 ()
void ags_audio_buffer_util_copy_s24_to_s16 ()
void ags_audio_buffer_util_copy_s24_to_s24 ()
void ags_audio_buffer_util_copy_s24_to_s32 ()
void ags_audio_buffer_util_copy_s24_to_s64 ()
void ags_audio_buffer_util_copy_s24_to_float ()
void ags_audio_buffer_util_copy_s24_to_double ()
void ags_audio_buffer_util_copy_s32_to_s8 ()
void ags_audio_buffer_util_copy_s32_to_s16 ()
void ags_audio_buffer_util_copy_s32_to_s24 ()
void ags_audio_buffer_util_copy_s32_to_s32 ()
void ags_audio_buffer_util_copy_s32_to_s64 ()
void ags_audio_buffer_util_copy_s32_to_float ()
void ags_audio_buffer_util_copy_s32_to_double ()
void ags_audio_buffer_util_copy_s64_to_s8 ()
void ags_audio_buffer_util_copy_s64_to_s16 ()
void ags_audio_buffer_util_copy_s64_to_s24 ()
void ags_audio_buffer_util_copy_s64_to_s32 ()
void ags_audio_buffer_util_copy_s64_to_s64 ()
void ags_audio_buffer_util_copy_s64_to_float ()
void ags_audio_buffer_util_copy_s64_to_double ()
void ags_audio_buffer_util_copy_float_to_s8 ()
void ags_audio_buffer_util_copy_float_to_s16 ()
void ags_audio_buffer_util_copy_float_to_s24 ()
void ags_audio_buffer_util_copy_float_to_s32 ()
void ags_audio_buffer_util_copy_float_to_s64 ()
void ags_audio_buffer_util_copy_float_to_float ()
void ags_audio_buffer_util_copy_float_to_double ()
void ags_audio_buffer_util_copy_double_to_s8 ()
void ags_audio_buffer_util_copy_double_to_s16 ()
void ags_audio_buffer_util_copy_double_to_s24 ()
void ags_audio_buffer_util_copy_double_to_s32 ()
void ags_audio_buffer_util_copy_double_to_s64 ()
void ags_audio_buffer_util_copy_double_to_float ()
void ags_audio_buffer_util_copy_double_to_double ()
void ags_audio_buffer_util_copy_buffer_to_buffer ()

Types and Values

Description

Functions

AGS_AUDIO_BUFFER_S8()

#define AGS_AUDIO_BUFFER_S8(ptr) ((signed char *)(ptr))


AGS_AUDIO_BUFFER_S16()

#define AGS_AUDIO_BUFFER_S16(ptr) ((signed short *)(ptr))


AGS_AUDIO_BUFFER_S24()

#define AGS_AUDIO_BUFFER_S24(ptr) ((signed long *)(ptr))


AGS_AUDIO_BUFFER_S32()

#define AGS_AUDIO_BUFFER_S32(ptr) ((signed long *)(ptr))


AGS_AUDIO_BUFFER_S64()

#define AGS_AUDIO_BUFFER_S64(ptr) ((signed long long *)(ptr))


AGS_AUDIO_BUFFER_FLOAT()

#define AGS_AUDIO_BUFFER_FLOAT(ptr) ((float *)(ptr))


AGS_AUDIO_BUFFER_DOUBLE()

#define AGS_AUDIO_BUFFER_DOUBLE(ptr) ((double *)(ptr))


ags_audio_buffer_util_format_from_soundcard ()

guint
ags_audio_buffer_util_format_from_soundcard
                               (guint soundcard_format);

Translate soundcard format to audio buffer util format.

Parameters

soundcard_format

the soundcard bit mode

 

Returns

the converted format

Since: 0.7.45


ags_audio_buffer_util_get_copy_mode ()

guint
ags_audio_buffer_util_get_copy_mode (guint destination_format,
                                     guint source_format);

Get copy mode for given destination and source format.

Parameters

destination_format

the destination buffer format

 

source_format

the source buffer format

 

Returns

the desired copy mode

Since: 0.7.45


ags_audio_buffer_util_morph_s8 ()

signed char *
ags_audio_buffer_util_morph_s8 (signed char *buffer,
                                guint channels,
                                guint buffer_length,
                                guint morph_lookbehind,
                                AgsComplex *morph);


ags_audio_buffer_util_morph_s16 ()

signed short *
ags_audio_buffer_util_morph_s16 (signed short *buffer,
                                 guint channels,
                                 guint buffer_length,
                                 guint morph_lookbehind,
                                 AgsComplex *morph);


ags_audio_buffer_util_morph_s24 ()

signed long *
ags_audio_buffer_util_morph_s24 (signed long *buffer,
                                 guint channels,
                                 guint buffer_length,
                                 guint morph_lookbehind,
                                 AgsComplex *morph);


ags_audio_buffer_util_morph_s32 ()

signed long *
ags_audio_buffer_util_morph_s32 (signed long *buffer,
                                 guint channels,
                                 guint buffer_length,
                                 guint morph_lookbehind,
                                 AgsComplex *morph);


ags_audio_buffer_util_morph_s64 ()

signed long long *
ags_audio_buffer_util_morph_s64 (signed long long *buffer,
                                 guint channels,
                                 guint buffer_length,
                                 guint morph_lookbehind,
                                 AgsComplex *morph);


ags_audio_buffer_util_morph_float ()

float *
ags_audio_buffer_util_morph_float (float *buffer,
                                   guint channels,
                                   guint buffer_length,
                                   guint morph_lookbehind,
                                   AgsComplex *morph);


ags_audio_buffer_util_morph_double ()

double *
ags_audio_buffer_util_morph_double (double *buffer,
                                    guint channels,
                                    guint buffer_length,
                                    guint morph_lookbehind,
                                    AgsComplex *morph);


ags_audio_buffer_util_morph ()

void *
ags_audio_buffer_util_morph (void *buffer,
                             guint channels,
                             guint format,
                             guint buffer_length,
                             guint morph_lookbehind,
                             AgsComplex *morph);


ags_audio_buffer_util_resample_s8 ()

signed char *
ags_audio_buffer_util_resample_s8 (signed char *buffer,
                                   guint channels,
                                   guint samplerate,
                                   guint buffer_length,
                                   guint target_samplerate);


ags_audio_buffer_util_resample_s16 ()

signed short *
ags_audio_buffer_util_resample_s16 (signed short *buffer,
                                    guint channels,
                                    guint samplerate,
                                    guint buffer_length,
                                    guint target_samplerate);


ags_audio_buffer_util_resample_s24 ()

signed long *
ags_audio_buffer_util_resample_s24 (signed long *buffer,
                                    guint channels,
                                    guint samplerate,
                                    guint buffer_length,
                                    guint target_samplerate);


ags_audio_buffer_util_resample_s32 ()

signed long *
ags_audio_buffer_util_resample_s32 (signed long *buffer,
                                    guint channels,
                                    guint samplerate,
                                    guint buffer_length,
                                    guint target_samplerate);


ags_audio_buffer_util_resample_s64 ()

signed long long *
ags_audio_buffer_util_resample_s64 (signed long long *buffer,
                                    guint channels,
                                    guint samplerate,
                                    guint buffer_length,
                                    guint target_samplerate);


ags_audio_buffer_util_resample_float ()

float *
ags_audio_buffer_util_resample_float (float *buffer,
                                      guint channels,
                                      guint samplerate,
                                      guint buffer_length,
                                      guint target_samplerate);


ags_audio_buffer_util_resample_double ()

double *
ags_audio_buffer_util_resample_double (double *buffer,
                                       guint channels,
                                       guint samplerate,
                                       guint buffer_length,
                                       guint target_samplerate);


ags_audio_buffer_util_resample ()

void *
ags_audio_buffer_util_resample (void *buffer,
                                guint channels,
                                guint format,
                                guint samplerate,
                                guint buffer_length,
                                guint target_samplerate);


ags_audio_buffer_util_copy_s8_to_s8 ()

void
ags_audio_buffer_util_copy_s8_to_s8 (signed char *destination,
                                     guint dchannels,
                                     signed char *source,
                                     guint schannels,
                                     guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s8_to_s16 ()

void
ags_audio_buffer_util_copy_s8_to_s16 (signed short *destination,
                                      guint dchannels,
                                      signed char *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s8_to_s24 ()

void
ags_audio_buffer_util_copy_s8_to_s24 (signed long *destination,
                                      guint dchannels,
                                      signed char *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s8_to_s32 ()

void
ags_audio_buffer_util_copy_s8_to_s32 (signed long *destination,
                                      guint dchannels,
                                      signed char *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s8_to_s64 ()

void
ags_audio_buffer_util_copy_s8_to_s64 (signed long long *destination,
                                      guint dchannels,
                                      signed char *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s8_to_float ()

void
ags_audio_buffer_util_copy_s8_to_float
                               (float *destination,
                                guint dchannels,
                                signed char *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s8_to_double ()

void
ags_audio_buffer_util_copy_s8_to_double
                               (double *destination,
                                guint dchannels,
                                signed char *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s16_to_s8 ()

void
ags_audio_buffer_util_copy_s16_to_s8 (signed char *destination,
                                      guint dchannels,
                                      signed short *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s16_to_s16 ()

void
ags_audio_buffer_util_copy_s16_to_s16 (signed short *destination,
                                       guint dchannels,
                                       signed short *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s16_to_s24 ()

void
ags_audio_buffer_util_copy_s16_to_s24 (signed long *destination,
                                       guint dchannels,
                                       signed short *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s16_to_s32 ()

void
ags_audio_buffer_util_copy_s16_to_s32 (signed long *destination,
                                       guint dchannels,
                                       signed short *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s16_to_s64 ()

void
ags_audio_buffer_util_copy_s16_to_s64 (signed long long *destination,
                                       guint dchannels,
                                       signed short *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s16_to_float ()

void
ags_audio_buffer_util_copy_s16_to_float
                               (float *destination,
                                guint dchannels,
                                signed short *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s16_to_double ()

void
ags_audio_buffer_util_copy_s16_to_double
                               (double *destination,
                                guint dchannels,
                                signed short *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s24_to_s8 ()

void
ags_audio_buffer_util_copy_s24_to_s8 (signed char *destination,
                                      guint dchannels,
                                      signed long *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s24_to_s16 ()

void
ags_audio_buffer_util_copy_s24_to_s16 (signed short *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s24_to_s24 ()

void
ags_audio_buffer_util_copy_s24_to_s24 (signed long *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s24_to_s32 ()

void
ags_audio_buffer_util_copy_s24_to_s32 (signed long *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s24_to_s64 ()

void
ags_audio_buffer_util_copy_s24_to_s64 (signed long long *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s24_to_float ()

void
ags_audio_buffer_util_copy_s24_to_float
                               (float *destination,
                                guint dchannels,
                                signed long *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s24_to_double ()

void
ags_audio_buffer_util_copy_s24_to_double
                               (double *destination,
                                guint dchannels,
                                signed long *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s32_to_s8 ()

void
ags_audio_buffer_util_copy_s32_to_s8 (signed char *destination,
                                      guint dchannels,
                                      signed long *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s32_to_s16 ()

void
ags_audio_buffer_util_copy_s32_to_s16 (signed short *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s32_to_s24 ()

void
ags_audio_buffer_util_copy_s32_to_s24 (signed long *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s32_to_s32 ()

void
ags_audio_buffer_util_copy_s32_to_s32 (signed long *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s32_to_s64 ()

void
ags_audio_buffer_util_copy_s32_to_s64 (signed long long *destination,
                                       guint dchannels,
                                       signed long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s32_to_float ()

void
ags_audio_buffer_util_copy_s32_to_float
                               (float *destination,
                                guint dchannels,
                                signed long *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s32_to_double ()

void
ags_audio_buffer_util_copy_s32_to_double
                               (double *destination,
                                guint dchannels,
                                signed long *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s64_to_s8 ()

void
ags_audio_buffer_util_copy_s64_to_s8 (signed char *destination,
                                      guint dchannels,
                                      signed long long *source,
                                      guint schannels,
                                      guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s64_to_s16 ()

void
ags_audio_buffer_util_copy_s64_to_s16 (signed short *destination,
                                       guint dchannels,
                                       signed long long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s64_to_s24 ()

void
ags_audio_buffer_util_copy_s64_to_s24 (signed long *destination,
                                       guint dchannels,
                                       signed long long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s64_to_s32 ()

void
ags_audio_buffer_util_copy_s64_to_s32 (signed long *destination,
                                       guint dchannels,
                                       signed long long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s64_to_s64 ()

void
ags_audio_buffer_util_copy_s64_to_s64 (signed long long *destination,
                                       guint dchannels,
                                       signed long long *source,
                                       guint schannels,
                                       guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s64_to_float ()

void
ags_audio_buffer_util_copy_s64_to_float
                               (float *destination,
                                guint dchannels,
                                signed long long *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_s64_to_double ()

void
ags_audio_buffer_util_copy_s64_to_double
                               (double *destination,
                                guint dchannels,
                                signed long long *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_float_to_s8 ()

void
ags_audio_buffer_util_copy_float_to_s8
                               (signed char *destination,
                                guint dchannels,
                                float *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_float_to_s16 ()

void
ags_audio_buffer_util_copy_float_to_s16
                               (signed short *destination,
                                guint dchannels,
                                float *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_float_to_s24 ()

void
ags_audio_buffer_util_copy_float_to_s24
                               (signed long *destination,
                                guint dchannels,
                                float *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_float_to_s32 ()

void
ags_audio_buffer_util_copy_float_to_s32
                               (signed long *destination,
                                guint dchannels,
                                float *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_float_to_s64 ()

void
ags_audio_buffer_util_copy_float_to_s64
                               (signed long long *destination,
                                guint dchannels,
                                float *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_float_to_float ()

void
ags_audio_buffer_util_copy_float_to_float
                               (float *destination,
                                guint dchannels,
                                float *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_float_to_double ()

void
ags_audio_buffer_util_copy_float_to_double
                               (double *destination,
                                guint dchannels,
                                float *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_double_to_s8 ()

void
ags_audio_buffer_util_copy_double_to_s8
                               (signed char *destination,
                                guint dchannels,
                                double *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_double_to_s16 ()

void
ags_audio_buffer_util_copy_double_to_s16
                               (signed short *destination,
                                guint dchannels,
                                double *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_double_to_s24 ()

void
ags_audio_buffer_util_copy_double_to_s24
                               (signed long *destination,
                                guint dchannels,
                                double *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_double_to_s32 ()

void
ags_audio_buffer_util_copy_double_to_s32
                               (signed long *destination,
                                guint dchannels,
                                double *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_double_to_s64 ()

void
ags_audio_buffer_util_copy_double_to_s64
                               (signed long long *destination,
                                guint dchannels,
                                double *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_double_to_float ()

void
ags_audio_buffer_util_copy_double_to_float
                               (float *destination,
                                guint dchannels,
                                double *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_double_to_double ()

void
ags_audio_buffer_util_copy_double_to_double
                               (double *destination,
                                guint dchannels,
                                double *source,
                                guint schannels,
                                guint count);

Copy audio data using additive strategy.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

source

source buffer

 

schannels

source buffer's count of channels

 

count

number of frames to copy

 

Since: 0.7.45


ags_audio_buffer_util_copy_buffer_to_buffer ()

void
ags_audio_buffer_util_copy_buffer_to_buffer
                               (void *destination,
                                guint dchannels,
                                guint doffset,
                                void *source,
                                guint schannels,
                                guint soffset,
                                guint count,
                                guint mode);

Wrapper function to copy functions. Doing type conversion.

Parameters

destination

destination buffer

 

dchannels

destination buffer's count of channels

 

doffset

start frame of destination

 

source

source buffer

 

schannels

source buffer's count of channels

 

soffset

start frame of source

 

count

number of frames to copy

 

mode

specified type conversion as described

 

Since: 0.7.0

Types and Values

enum AgsAudioBufferUtilFormat

Members

AGS_AUDIO_BUFFER_UTIL_S8

   

AGS_AUDIO_BUFFER_UTIL_S16

   

AGS_AUDIO_BUFFER_UTIL_S24

   

AGS_AUDIO_BUFFER_UTIL_S32

   

AGS_AUDIO_BUFFER_UTIL_S64

   

AGS_AUDIO_BUFFER_UTIL_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_DOUBLE

   

enum AgsAudioBufferUtilSamplerate

Members

AGS_AUDIO_BUFFER_UTIL_8000HZ

   

AGS_AUDIO_BUFFER_UTIL_44100HZ

   

AGS_AUDIO_BUFFER_UTIL_48000HZ

   

AGS_AUDIO_BUFFER_UTIL_96000HZ

   

AGS_AUDIO_BUFFER_UTIL_176400HZ

   

AGS_AUDIO_BUFFER_UTIL_192000HZ

   

AGS_AUDIO_BUFFER_UTIL_352800HZ

   

AGS_AUDIO_BUFFER_UTIL_2822400HZ

   

AGS_AUDIO_BUFFER_UTIL_5644800HZ

   

enum AgsAudioBufferUtilCopyMode

Members

AGS_AUDIO_BUFFER_UTIL_COPY_S8_TO_S8

   

AGS_AUDIO_BUFFER_UTIL_COPY_S8_TO_S16

   

AGS_AUDIO_BUFFER_UTIL_COPY_S8_TO_S24

   

AGS_AUDIO_BUFFER_UTIL_COPY_S8_TO_S32

   

AGS_AUDIO_BUFFER_UTIL_COPY_S8_TO_S64

   

AGS_AUDIO_BUFFER_UTIL_COPY_S8_TO_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_COPY_S8_TO_DOUBLE

   

AGS_AUDIO_BUFFER_UTIL_COPY_S16_TO_S8

   

AGS_AUDIO_BUFFER_UTIL_COPY_S16_TO_S16

   

AGS_AUDIO_BUFFER_UTIL_COPY_S16_TO_S24

   

AGS_AUDIO_BUFFER_UTIL_COPY_S16_TO_S32

   

AGS_AUDIO_BUFFER_UTIL_COPY_S16_TO_S64

   

AGS_AUDIO_BUFFER_UTIL_COPY_S16_TO_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_COPY_S16_TO_DOUBLE

   

AGS_AUDIO_BUFFER_UTIL_COPY_S24_TO_S8

   

AGS_AUDIO_BUFFER_UTIL_COPY_S24_TO_S16

   

AGS_AUDIO_BUFFER_UTIL_COPY_S24_TO_S24

   

AGS_AUDIO_BUFFER_UTIL_COPY_S24_TO_S32

   

AGS_AUDIO_BUFFER_UTIL_COPY_S24_TO_S64

   

AGS_AUDIO_BUFFER_UTIL_COPY_S24_TO_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_COPY_S24_TO_DOUBLE

   

AGS_AUDIO_BUFFER_UTIL_COPY_S32_TO_S8

   

AGS_AUDIO_BUFFER_UTIL_COPY_S32_TO_S16

   

AGS_AUDIO_BUFFER_UTIL_COPY_S32_TO_S24

   

AGS_AUDIO_BUFFER_UTIL_COPY_S32_TO_S32

   

AGS_AUDIO_BUFFER_UTIL_COPY_S32_TO_S64

   

AGS_AUDIO_BUFFER_UTIL_COPY_S32_TO_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_COPY_S32_TO_DOUBLE

   

AGS_AUDIO_BUFFER_UTIL_COPY_S64_TO_S8

   

AGS_AUDIO_BUFFER_UTIL_COPY_S64_TO_S16

   

AGS_AUDIO_BUFFER_UTIL_COPY_S64_TO_S24

   

AGS_AUDIO_BUFFER_UTIL_COPY_S64_TO_S32

   

AGS_AUDIO_BUFFER_UTIL_COPY_S64_TO_S64

   

AGS_AUDIO_BUFFER_UTIL_COPY_S64_TO_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_COPY_S64_TO_DOUBLE

   

AGS_AUDIO_BUFFER_UTIL_COPY_FLOAT_TO_S8

   

AGS_AUDIO_BUFFER_UTIL_COPY_FLOAT_TO_S16

   

AGS_AUDIO_BUFFER_UTIL_COPY_FLOAT_TO_S24

   

AGS_AUDIO_BUFFER_UTIL_COPY_FLOAT_TO_S32

   

AGS_AUDIO_BUFFER_UTIL_COPY_FLOAT_TO_S64

   

AGS_AUDIO_BUFFER_UTIL_COPY_FLOAT_TO_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_COPY_FLOAT_TO_DOUBLE

   

AGS_AUDIO_BUFFER_UTIL_COPY_DOUBLE_TO_S8

   

AGS_AUDIO_BUFFER_UTIL_COPY_DOUBLE_TO_S16

   

AGS_AUDIO_BUFFER_UTIL_COPY_DOUBLE_TO_S24

   

AGS_AUDIO_BUFFER_UTIL_COPY_DOUBLE_TO_S32

   

AGS_AUDIO_BUFFER_UTIL_COPY_DOUBLE_TO_S64

   

AGS_AUDIO_BUFFER_UTIL_COPY_DOUBLE_TO_FLOAT

   

AGS_AUDIO_BUFFER_UTIL_COPY_DOUBLE_TO_DOUBLE