#include "linden_common.h"
#include "audioengine_fmod.h"
#include "listener_fmod.h"
#include "llerror.h"
#include "llmath.h"
#include "llrand.h"
#include "fmod.h"
#include "fmod_errors.h"
#include "lldir.h"
#include "llapr.h"
#include "sound_ids.h"
Include dependency graph for audioengine_fmod.cpp:
Go to the source code of this file.
Defines | |
#define | MIXBUFFERFORMAT S16 |
Functions | |
void *F_CALLBACKAPI | windCallback (void *originalbuffer, void *newbuffer, int length, void *userdata) |
MIXBUFFERFORMAT | clipSample (MIXBUFFERFORMAT sample, MIXBUFFERFORMAT min, MIXBUFFERFORMAT max) |
Variables | |
FSOUND_DSPUNIT * | gWindDSP = NULL |
F64 | gbuf0 = 0.0 |
F64 | gbuf1 = 0.0 |
F64 | gbuf2 = 0.0 |
F64 | gbuf3 = 0.0 |
F64 | gbuf4 = 0.0 |
F64 | gbuf5 = 0.0 |
F64 | gY0 = 0.0 |
F64 | gY1 = 0.0 |
F32 | gTargetGain = 0.f |
F32 | gCurrentGain = 0.f |
F32 | gTargetFreq = 100.f |
F32 | gCurrentFreq = 100.f |
F32 | gTargetPanGainR = 0.5f |
F32 | gCurrentPanGainR = 0.5f |
Copyright (c) 2002-2007, Linden Research, Inc.
Second Life Viewer Source Code The source code in this file ("Source Code") is provided by Linden Lab to you under the terms of the GNU General Public License, version 2.0 ("GPL"), unless you have obtained a separate licensing agreement ("Other License"), formally executed by you and Linden Lab. Terms of the GPL can be found in doc/GPL-license.txt in this distribution, or online at http://secondlife.com/developers/opensource/gplv2
There are special exceptions to the terms and conditions of the GPL as it is applied to this Source Code. View the full text of the exception in the file doc/FLOSS-exception.txt in this software distribution, or online at http://secondlife.com/developers/opensource/flossexception
By copying, modifying or distributing this software, you acknowledge that you have read and understood your obligations described above, and agree to abide by those obligations.
ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. $/LicenseInfo$
Definition in file audioengine_fmod.cpp.
#define MIXBUFFERFORMAT S16 |
MIXBUFFERFORMAT clipSample | ( | MIXBUFFERFORMAT | sample, | |
MIXBUFFERFORMAT | min, | |||
MIXBUFFERFORMAT | max | |||
) | [inline] |
void *F_CALLBACKAPI windCallback | ( | void * | originalbuffer, | |
void * | newbuffer, | |||
int | length, | |||
void * | userdata | |||
) |
Definition at line 1100 of file audioengine_fmod.cpp.
References clipSample(), f, F_TWO_PI, gbuf0, gbuf1, gbuf2, gbuf3, gbuf4, gbuf5, gCurrentFreq, gCurrentGain, gCurrentPanGainR, gTargetFreq, gTargetGain, gTargetPanGainR, gY0, gY1, ll_frand(), llfloor(), and MIXBUFFERFORMAT.
Referenced by LLAudioEngine_FMOD::initWind().
F32 gCurrentFreq = 100.f |
F32 gCurrentGain = 0.f |
F32 gCurrentPanGainR = 0.5f |
F32 gTargetFreq = 100.f |
Definition at line 68 of file audioengine_fmod.cpp.
Referenced by LLAudioEngine_FMOD::updateWind(), and windCallback().
F32 gTargetGain = 0.f |
Definition at line 66 of file audioengine_fmod.cpp.
Referenced by LLAudioEngine_FMOD::updateWind(), and windCallback().
F32 gTargetPanGainR = 0.5f |
Definition at line 70 of file audioengine_fmod.cpp.
Referenced by LLAudioEngine_FMOD::updateWind(), and windCallback().
FSOUND_DSPUNIT* gWindDSP = NULL |
Definition at line 54 of file audioengine_fmod.cpp.
Referenced by LLAudioEngine_FMOD::cleanupWind(), LLAudioEngine_FMOD::initWind(), and LLAudioEngine_FMOD::shutdown().