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

bell_r2_mf.c File Reference

#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <time.h>
#include <fcntl.h>
#include "floating_fudge.h"
#include "spandsp/telephony.h"
#include "spandsp/fast_convert.h"
#include "spandsp/queue.h"
#include "spandsp/dc_restore.h"
#include "spandsp/complex.h"
#include "spandsp/dds.h"
#include "spandsp/tone_detect.h"
#include "spandsp/tone_generate.h"
#include "spandsp/super_tone_rx.h"
#include "spandsp/dtmf.h"
#include "spandsp/bell_r2_mf.h"
#include "spandsp/private/queue.h"
#include "spandsp/private/tone_generate.h"
#include "spandsp/private/bell_r2_mf.h"

Classes

struct  mf_digit_tones_t

Defines

#define M_PI   3.14159265358979323846264338327
#define ms_to_samples(t)   (((t)*SAMPLE_RATE)/1000)
#define BELL_MF_THRESHOLD   3343803100.0f
#define BELL_MF_TWIST   3.981f
#define BELL_MF_RELATIVE_PEAK   12.589f
#define BELL_MF_SAMPLES_PER_BLOCK   120
#define R2_MF_THRESHOLD   1031766650.0f
#define R2_MF_TWIST   5.012f
#define R2_MF_RELATIVE_PEAK   12.589f
#define R2_MF_SAMPLES_PER_BLOCK   133

Functions

 SPAN_DECLARE (int)
 Release a V.8 context.
 SPAN_DECLARE (bell_mf_tx_state_t *)
 Initialise a Bell MF generator context.
 SPAN_DECLARE (r2_mf_tx_state_t *)
 SPAN_DECLARE (size_t)
 Set an NSF frame to be associated with a T.30 context.
 SPAN_DECLARE (bell_mf_rx_state_t *)
 SPAN_DECLARE (r2_mf_rx_state_t *)

Variables

int bell_mf_gen_inited = FALSE
tone_gen_descriptor_t bell_mf_digit_tones [15]
int r2_mf_gen_inited = FALSE
tone_gen_descriptor_t r2_mf_fwd_digit_tones [15]
tone_gen_descriptor_t r2_mf_back_digit_tones [15]

Detailed Description


Function Documentation

SPAN_DECLARE size_t   ) 
 

Set an NSF frame to be associated with a T.30 context.

Get an NSF frame to be associated with a T.30 context.

Parameters:
s The T.30 context.
nsf A pointer to the frame.
Returns:
the length of the NSF message.

SPAN_DECLARE bell_mf_tx_state_t  ) 
 

Initialise a Bell MF generator context.

Parameters:
s The Bell MF generator context.
Returns:
A pointer to the Bell MF generator context.

SPAN_DECLARE int   ) 
 

Release a V.8 context.

Parameters:
s The ADSI receive context.
amp The audio sample buffer.
len The number of samples in the buffer.
Returns:
The number of samples unprocessed.


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