Main Page | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

noise.h File Reference

Go to the source code of this file.

Typedefs

typedef noise_state_s noise_state_t

Enumerations

enum  { NOISE_CLASS_AWGN = 1, NOISE_CLASS_HOTH }

Functions

 SPAN_DECLARE (noise_state_t *) noise_init_dbm0(noise_state_t *s
 Initialise an audio noise generator.
 SPAN_DECLARE (int) noise_release(noise_state_t *s)
 Generate a sample of audio noise.

Variables

int seed
int float level
int float int class_of_noise
int float int int quality


Detailed Description


Typedef Documentation

typedef struct noise_state_s noise_state_t
 

Noise generator descriptor. This contains all the state information for an instance of the noise generator.


Function Documentation

SPAN_DECLARE int32_t   ) 
 

Generate a sample of audio noise.

Compress a block of octets.

Parameters:
s The V.42bis context.
buf The data to be compressed.
len The length of the data buffer.
Returns:
0

SPAN_DECLARE noise_state_t  ) 
 

Initialise an audio noise generator.

Initialise an audio noise generator.

Parameters:
s The noise generator context.
seed A seed for the underlying random number generator.
level The noise power level in dBmO.
class_of_noise The class of noise (e.g. AWGN).
quality A parameter which permits speed and accuracy of the noise generation to be adjusted.
Returns:
A pointer to the noise generator context.


Generated on Fri Aug 28 20:12:28 2009 for spandsp by  doxygen 1.3.9.1