audioengine_fmod.cpp File Reference

Implementation of LLAudioEngine class abstracting the audio support as a FMOD 3D implementation. More...

#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


Detailed Description

Implementation of LLAudioEngine class abstracting the audio support as a FMOD 3D implementation.

LicenseInfo
firstyear=2002&license=viewergpl

Copyright (c) 2002-2008, 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://secondlifegrid.net/programs/open_source/licensing/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://secondlifegrid.net/programs/open_source/licensing/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 Documentation

#define MIXBUFFERFORMAT   S16

Definition at line 1087 of file audioengine_fmod.cpp.

Referenced by windCallback().


Function Documentation

MIXBUFFERFORMAT clipSample ( MIXBUFFERFORMAT  sample,
MIXBUFFERFORMAT  min,
MIXBUFFERFORMAT  max 
) [inline]

Definition at line 1090 of file audioengine_fmod.cpp.

Referenced by windCallback().

Here is the caller graph for this function:

void *F_CALLBACKAPI windCallback ( void *  originalbuffer,
void *  newbuffer,
int  length,
void *  userdata 
)

Definition at line 1100 of file audioengine_fmod.cpp.

References clipSample(), 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().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

F64 gbuf0 = 0.0

Definition at line 57 of file audioengine_fmod.cpp.

Referenced by windCallback().

F64 gbuf1 = 0.0

Definition at line 58 of file audioengine_fmod.cpp.

Referenced by windCallback().

F64 gbuf2 = 0.0

Definition at line 59 of file audioengine_fmod.cpp.

Referenced by windCallback().

F64 gbuf3 = 0.0

Definition at line 60 of file audioengine_fmod.cpp.

Referenced by windCallback().

F64 gbuf4 = 0.0

Definition at line 61 of file audioengine_fmod.cpp.

Referenced by windCallback().

F64 gbuf5 = 0.0

Definition at line 62 of file audioengine_fmod.cpp.

Referenced by windCallback().

F32 gCurrentFreq = 100.f

Definition at line 69 of file audioengine_fmod.cpp.

Referenced by windCallback().

Definition at line 67 of file audioengine_fmod.cpp.

Referenced by windCallback().

Definition at line 71 of file audioengine_fmod.cpp.

Referenced by windCallback().

F32 gTargetFreq = 100.f

Definition at line 68 of file audioengine_fmod.cpp.

Referenced by LLAudioEngine_FMOD::updateWind(), and windCallback().

Definition at line 66 of file audioengine_fmod.cpp.

Referenced by LLAudioEngine_FMOD::updateWind(), and windCallback().

Definition at line 70 of file audioengine_fmod.cpp.

Referenced by LLAudioEngine_FMOD::updateWind(), and windCallback().

FSOUND_DSPUNIT* gWindDSP = NULL

F64 gY0 = 0.0

Definition at line 63 of file audioengine_fmod.cpp.

Referenced by windCallback().

F64 gY1 = 0.0

Definition at line 64 of file audioengine_fmod.cpp.

Referenced by windCallback().


Generated on Fri May 16 08:34:33 2008 for SecondLife by  doxygen 1.5.5