XaudioSampleBufferOps

Section: AUDIO Extension (3)
Updated: 2007-08-30
Index Return to Main Contents
 

NAME

XaudioMultiplyConstant, XaudioMultiplyConstantAccumulate, XaudioMultiply, XaudioMultiplyAccumulate - multiply sample values  

SYNOPSIS

#include <X11/extensions/Xaudio.h>

void XaudioMultiplyConstant(Display *display , XaudioSampleBuffer dst, int dst_index, XaudioSampleBuffer src, int src_index,double constant, size_t count);

void XaudioMultiplyConstantAccumulate(Display *display , XaudioSampleBuffer dst, int dst_index, XaudioSampleBuffer src, int src_index,double constant, size_t count);

void XaudioMultiply(Display *display , XaudioSampleBuffer dst, int dst_index, XaudioSampleBuffer src1, int src1_index, XaudioSampleBuffer src2, int src2_index, size_t count);

void XaudioMultiplyAccumulate(Display *display , XaudioSampleBuffer dst, int dst_index, XaudioSampleBuffer src1, int src1_index, XaudioSampleBuffer src2, int src2_index, size_t count);


 

ARGUMENTS

display
Specifies the connection to the X server.
dst
Destination sample buffer.
dst_index
Index of first sample of destination sample buffer.
src
Source sample buffer.
src_index
Index of first sample of source sample buffer.
src1
Source sample buffer.
src1_index
Index of first sample of source sample buffer.
src2
Source sample buffer.
src2_index
Index of first sample of source sample buffer.
count
Number of samples to compute.
constant
Constant value for arithmetic operation.

 

DESCRIPTION

The XaudioMultiplyConstant and XaudioMultiplyConstantAccumulate functions multiply each sample of the src sample buffer, while the XaudioMultiply and XaudioMultiplyAccumulate functions multiply matching samples of the src1 and src2 sample buffers. The XaudioMultiplyConstant and XaudioMultiply functions then replace the sample values of dst with the computed value while the XaudioMultiplyConstantAccumulate and XaudioMultiplyAccumulate functions add the resulting value to the previous sample values of dst.

The src_index, dst_index, dst1_index, dst2_index and count parameters control which samples of each buffer are read or written.

If the destination sample buffer is identical to one of the source sample buffers then the ranges of indices read and written should either be disjoint or identical (but not overlap partially). Otherwise the result is implementation-dependent.

 

SEE ALSO

XaudioSampleBuffer(3), XtimeAudio(3), XaudioPCMContext(3)


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 13:14:25 GMT, January 31, 2008