AF_sample_sizes(3)

NAME
AF_sample_sizes - information about encoding types

SYNTAX
#include <AF/AFUtils.h>

 struct AFSampleTypes {
     unsigned int bytes_per_unit; bytes per minimal block
     unsigned int samples_per_unit; samples per minimal block
     char *name; name of the encoding
     }

extern struct AFSampleTypes AF_sample_sizes[];

DESCRIPTION
is a precomputed table you can link with your application. It is indexed by values of the type AEncodeType found in audio.h. For each of these encoding types, gives useful information.

is the block size of the encoding, while is the number of samples per block. is a text string, human sensible name for the encoding.

For example, a 3-bit-per-sample encoding such as a 24 Kbps ADPCM would have bytes_per_unit == 3, samples_per_unit == 8.

SEE ALSO
AFSilence(3), AFCreateAC(3), AFChangeAC(3)
AF(1)

BUGS
We realize this data structure may not be adequate to describe variable rate or variable block size formats.

If you encounter a reproducible bug, please submit a problem report to (af-bugs@crl.dec.com).

COPYRIGHT
Copyright 1990-1994, Digital Equipment Corporation.
See AF(1) for a full statement of rights and permissions.

AUTHORS
Larry Stewart, Digital Cambridge Research Lab