spandsp
0.0.6
|
00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * private/super_tone_tx.h - Flexible telephony supervisory tone generation. 00005 * 00006 * Written by Steve Underwood <steveu@coppice.org> 00007 * 00008 * Copyright (C) 2001 Steve Underwood 00009 * 00010 * All rights reserved. 00011 * 00012 * This program is free software; you can redistribute it and/or modify 00013 * it under the terms of the GNU Lesser General Public License version 2.1, 00014 * as published by the Free Software Foundation. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Lesser General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Lesser General Public 00022 * License along with this program; if not, write to the Free Software 00023 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00024 */ 00025 00026 #if !defined(_SPANDSP_PRIVATE_SUPER_TONE_TX_H_) 00027 #define _SPANDSP_PRIVATE_SUPER_TONE_TX_H_ 00028 00029 struct super_tone_tx_step_s 00030 { 00031 tone_gen_tone_descriptor_t tone[4]; 00032 int tone_on; 00033 int length; 00034 int cycles; 00035 super_tone_tx_step_t *next; 00036 super_tone_tx_step_t *nest; 00037 }; 00038 00039 struct super_tone_tx_state_s 00040 { 00041 tone_gen_tone_descriptor_t tone[4]; 00042 uint32_t phase[4]; 00043 int current_position; 00044 int level; 00045 super_tone_tx_step_t *levels[4]; 00046 int cycles[4]; 00047 }; 00048 00049 #endif 00050 /*- End of file ------------------------------------------------------------*/