spandsp
0.0.6
|
00001 /* 00002 * SpanDSP - a series of DSP components for telephony 00003 * 00004 * private/noise.h - A low complexity audio noise generator, suitable for 00005 * real time generation (current just approx AWGN) 00006 * 00007 * Written by Steve Underwood <steveu@coppice.org> 00008 * 00009 * Copyright (C) 2005 Steve Underwood 00010 * 00011 * All rights reserved. 00012 * 00013 * This program is free software; you can redistribute it and/or modify 00014 * it under the terms of the GNU Lesser General Public License version 2.1, 00015 * as published by the Free Software Foundation. 00016 * 00017 * This program is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU Lesser General Public License for more details. 00021 * 00022 * You should have received a copy of the GNU Lesser General Public 00023 * License along with this program; if not, write to the Free Software 00024 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00025 */ 00026 00027 /*! \file */ 00028 00029 #if !defined(_SPANDSP_PRIVATE_NOISE_H_) 00030 #define _SPANDSP_PRIVATE_NOISE_H_ 00031 00032 /*! 00033 Noise generator descriptor. This contains all the state information for an instance 00034 of the noise generator. 00035 */ 00036 struct noise_state_s 00037 { 00038 int class_of_noise; 00039 int quality; 00040 int32_t rms; 00041 uint32_t rndnum; 00042 int32_t state; 00043 }; 00044 00045 #endif 00046 /*- End of file ------------------------------------------------------------*/