c_pxsamp - Subsamples a data buffer

SYNTAX

#include "worgen.h"

FUNCTION c_pxsamp (ns, dtype, inc, buf)

     long               *ns;
     long               *dtype;
     long               *inc;
     unsigned char      *buf;

PARAMETERS

ns (input, integer)

The number of samples in the input data buffer.

dtype (input integer)

The data type of the input data buffer. Legal values include the following:

     = EBYTE(1):     unsigned byte data
     = EWORD(2):     signed two byte data
     = ELONG(3):     signed four byte data
     = EREAL(4):     four byte floating point data

inc (input integer)

The sample increment value the data buffer is to be subsampled by.

buf (input/output, length(nentity))

The data buffer which is to be subsampled. The parameter ns in the data buffer, and parameter dtypebuffer.

DESCRIPTION

The c_pxsamp() call is used to subsample values within a data buffer. Every inc sample, starting with sample 1, is selected from the data buffer.

RETURN VALUE

c_pxsamp() has no return value.