spandsp: silence_gen.h Source File

spandsp 0.0.6

private/silence_gen.h
1/*
2 * SpanDSP - a series of DSP components for telephony
3 *
4 * private/silence_gen.c - A silence generator, for inserting timed silences.
5 *
6 * Written by Steve Underwood <steveu@coppice.org>
7 *
8 * Copyright (C) 2006 Steve Underwood
9 *
10 * All rights reserved.
11 *
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 2.1,
14 * as published by the Free Software Foundation.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */
25
26#if !defined(_SPANDSP_PRIVATE_SILENCE_GEN_H_)
27#define _SPANDSP_PRIVATE_SILENCE_GEN_H_
28
29 struct silence_gen_state_s
30{
31 /*! \brief The callback function used to report status changes. */
32 modem_status_func_t status_handler;
33 /*! \brief A user specified opaque pointer passed to the status function. */
34 void *status_user_data;
35
36 int remaining_samples;
37 int total_samples;
38};
39
40#endif
41/*- End of file ------------------------------------------------------------*/
modem_status_func_t
void(* modem_status_func_t)(void *user_data, int status)
Definition async.h:114
silence_gen_state_s
Definition private/silence_gen.h:30
silence_gen_state_s::status_handler
modem_status_func_t status_handler
The callback function used to report status changes.
Definition private/silence_gen.h:32
silence_gen_state_s::status_user_data
void * status_user_data
A user specified opaque pointer passed to the status function.
Definition private/silence_gen.h:34