diff options
Diffstat (limited to 'linden/indra/llaudio/windgen.h')
-rw-r--r-- | linden/indra/llaudio/windgen.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/linden/indra/llaudio/windgen.h b/linden/indra/llaudio/windgen.h index 39ce568..faffd3c 100644 --- a/linden/indra/llaudio/windgen.h +++ b/linden/indra/llaudio/windgen.h | |||
@@ -4,7 +4,7 @@ | |||
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
7 | * Copyright (c) 2002-2008, Linden Research, Inc. | 7 | * Copyright (c) 2002-2009, Linden Research, Inc. |
8 | * | 8 | * |
9 | * Second Life Viewer Source Code | 9 | * Second Life Viewer Source Code |
10 | * The source code in this file ("Source Code") is provided by Linden Lab | 10 | * The source code in this file ("Source Code") is provided by Linden Lab |
@@ -12,12 +12,12 @@ | |||
12 | * ("GPL"), unless you have obtained a separate licensing agreement | 12 | * ("GPL"), unless you have obtained a separate licensing agreement |
13 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 13 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 14 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
15 | * online at http://secondlife.com/developers/opensource/gplv2 | 15 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
16 | * | 16 | * |
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlife.com/developers/opensource/flossexception | 20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
21 | * | 21 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 22 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 23 | * that you have read and understood your obligations described above, |
@@ -82,7 +82,7 @@ public: | |||
82 | // start with white noise | 82 | // start with white noise |
83 | nextSample = ll_frand(2.0f) - 1.0f; | 83 | nextSample = ll_frand(2.0f) - 1.0f; |
84 | 84 | ||
85 | #if 1 // LLAE_WIND_PINK apply pinking filter | 85 | // apply pinking filter |
86 | mbuf0 = 0.997f * mbuf0 + 0.0126502f * nextSample; | 86 | mbuf0 = 0.997f * mbuf0 + 0.0126502f * nextSample; |
87 | mbuf1 = 0.985f * mbuf1 + 0.0139083f * nextSample; | 87 | mbuf1 = 0.985f * mbuf1 + 0.0139083f * nextSample; |
88 | mbuf2 = 0.950f * mbuf2 + 0.0205439f * nextSample; | 88 | mbuf2 = 0.950f * mbuf2 + 0.0205439f * nextSample; |
@@ -91,14 +91,11 @@ public: | |||
91 | mbuf5 = 0.250f * mbuf5 + 0.1093477f * nextSample; | 91 | mbuf5 = 0.250f * mbuf5 + 0.1093477f * nextSample; |
92 | 92 | ||
93 | nextSample = mbuf0 + mbuf1 + mbuf2 + mbuf3 + mbuf4 + mbuf5; | 93 | nextSample = mbuf0 + mbuf1 + mbuf2 + mbuf3 + mbuf4 + mbuf5; |
94 | #endif | ||
95 | 94 | ||
96 | #if 1 //LLAE_WIND_RESONANT // do a resonant filter on the noise | 95 | // do a resonant filter on the noise |
97 | nextSample = (double)( a0 * nextSample - b1 * mY0 - b2 * mY1 ); | 96 | nextSample = (double)( a0 * nextSample - b1 * mY0 - b2 * mY1 ); |
98 | |||
99 | mY1 = mY0; | 97 | mY1 = mY0; |
100 | mY0 = nextSample; | 98 | mY0 = nextSample; |
101 | #endif | ||
102 | 99 | ||
103 | nextSample *= mCurrentGain; | 100 | nextSample *= mCurrentGain; |
104 | 101 | ||