aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llaudio
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llaudio')
-rw-r--r--linden/indra/llaudio/audioengine_fmod.cpp2
-rw-r--r--linden/indra/llaudio/vorbisencode.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llaudio/audioengine_fmod.cpp b/linden/indra/llaudio/audioengine_fmod.cpp
index a4ddd1f..a69212e 100644
--- a/linden/indra/llaudio/audioengine_fmod.cpp
+++ b/linden/indra/llaudio/audioengine_fmod.cpp
@@ -1136,7 +1136,7 @@ void * F_CALLBACKAPI windCallback(void *originalbuffer, void *newbuffer, int len
1136 double nextSample; 1136 double nextSample;
1137 1137
1138 // start with white noise 1138 // start with white noise
1139 nextSample = frand(2.0f) - 1.0f; 1139 nextSample = llclamp((ll_frand(2.0f) - 1.0f), -1.0f, 1.0f);
1140 1140
1141#if 1 // LLAE_WIND_PINK apply pinking filter 1141#if 1 // LLAE_WIND_PINK apply pinking filter
1142 gbuf0 = 0.997f * gbuf0 + 0.0126502f * nextSample; 1142 gbuf0 = 0.997f * gbuf0 + 0.0126502f * nextSample;
diff --git a/linden/indra/llaudio/vorbisencode.cpp b/linden/indra/llaudio/vorbisencode.cpp
index 6007940..c8716cc 100644
--- a/linden/indra/llaudio/vorbisencode.cpp
+++ b/linden/indra/llaudio/vorbisencode.cpp
@@ -322,7 +322,7 @@ S32 encode_vorbis_file_at(const char *in_fname, const char *out_fname, S32 bitra
322 /* set up our packet->stream encoder */ 322 /* set up our packet->stream encoder */
323 /* pick a random serial number; that way we can more likely build 323 /* pick a random serial number; that way we can more likely build
324 chained streams just by concatenation */ 324 chained streams just by concatenation */
325 ogg_stream_init(&os,(int)frand(0xFFFFFF)); 325 ogg_stream_init(&os, ll_rand());
326 326
327 /* Vorbis streams begin with three headers; the initial header (with 327 /* Vorbis streams begin with three headers; the initial header (with
328 most of the codec setup parameters) which is mandated by the Ogg 328 most of the codec setup parameters) which is mandated by the Ogg