#include <inttypes.h>#include <stdlib.h>#include <stdio.h>#include <fcntl.h>#include <string.h>#include <assert.h>#include <limits.h>#include "spandsp/telephony.h"#include "spandsp/logging.h"#include "spandsp/silence_gen.h"Functions | |
| int | silence_gen (silence_gen_state_t *s, int16_t *amp, int max_len) |
| Generate a block of silent audio samples. | |
| void | silence_gen_always (silence_gen_state_t *s) |
| Set a silence generator context to output continuous silence. | |
| void | silence_gen_set (silence_gen_state_t *s, int silent_samples) |
| Set a silence generator context to output a specified period of silence. | |
| void | silence_gen_alter (silence_gen_state_t *s, int silent_samples) |
| Alter the period of a silence generator context by a specified amount. | |
| int | silence_gen_remainder (silence_gen_state_t *s) |
| Find how long a silence generator context has to run. | |
| int | silence_gen_generated (silence_gen_state_t *s) |
| Find the total silence generated to date. | |
| silence_gen_state_t * | silence_gen_init (silence_gen_state_t *s, int silent_samples) |
| Initialise a timed silence generator context. | |
|
||||||||||||||||
|
Generate a block of silent audio samples. Generate a block of silent audio samples.
|
|
||||||||||||
|
Alter the period of a silence generator context by a specified amount. Alter the period of a silence generator context by a specified amount.
|
|
|
Set a silence generator context to output continuous silence. Set a silence generator context to output continuous silence.
|
|
|
Find the total silence generated to date. Find the total silence generated to date by a silence generator context.
|
|
||||||||||||
|
Initialise a timed silence generator context. Initialise a timed silence generator context.
|
|
|
Find how long a silence generator context has to run. Find how long a silence generator context has to run.
|
|
||||||||||||
|
Set a silence generator context to output a specified period of silence. Set a silence generator context to output a specified period of silence.
|
1.4.6