SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields
SpraakAGC Struct Reference

Structure used to provide status information to the volume monitor functions. More...

Data Fields

int hist [16]
 
int nfrag
 Number of fragments in the histogram. More...
 
float maxval
 Maximum |sample value| (normalized) over the last fragment. More...
 
float maxavg
 
float energy
 Average energy (normalized) of the last fragment. More...
 
void * ext_info
 Pointer to extra information provided by the user. More...
 
float gain_adapt
 Report back that the gain is adjusted by 1.0/gain_adapt. More...
 

Detailed Description

Structure used to provide status information to the volume monitor functions.

See SPRaak_mon_volume() for more details.

Field Documentation

int SpraakAGC::hist[16]

Histogram of the index of the most significant bit of |sample values|.

int SpraakAGC::nfrag

Number of fragments in the histogram.

float SpraakAGC::maxval

Maximum |sample value| (normalized) over the last fragment.

float SpraakAGC::maxavg

Average maximum |sample value| (normalized) per frame for the last fragment.

float SpraakAGC::energy

Average energy (normalized) of the last fragment.

void* SpraakAGC::ext_info

Pointer to extra information provided by the user.

float SpraakAGC::gain_adapt

Report back that the gain is adjusted by 1.0/gain_adapt.