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 * $Id: noise.h,v 1.1 2008/11/30 12:45:09 steveu Exp $ 00027 */ 00028 00029 /*! \file */ 00030 00031 #if !defined(_SPANDSP_PRIVATE_NOISE_H_) 00032 #define _SPANDSP_PRIVATE_NOISE_H_ 00033 00034 /*! 00035 Noise generator descriptor. This contains all the state information for an instance 00036 of the noise generator. 00037 */ 00038 struct noise_state_s 00039 { 00040 int class_of_noise; 00041 int quality; 00042 int32_t rms; 00043 uint32_t rndnum; 00044 int32_t state; 00045 }; 00046 00047 #endif 00048 /*- End of file ------------------------------------------------------------*/