SPRAAK
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

§ hist

int SpraakAGC::hist[16]

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

§ nfrag

int SpraakAGC::nfrag

Number of fragments in the histogram.

§ maxval

float SpraakAGC::maxval

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

§ maxavg

float SpraakAGC::maxavg

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

§ energy

float SpraakAGC::energy

Average energy (normalized) of the last fragment.

§ ext_info

void* SpraakAGC::ext_info

Pointer to extra information provided by the user.

§ gain_adapt

float SpraakAGC::gain_adapt

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