PageRenderTime 13ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 2ms app.codeStats 0ms

/indra/llaudio/lllistener_fmod.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 58 lines | 23 code | 9 blank | 26 comment | 0 complexity | 7d0ff7b2564bab05b0c3892724af01c0 MD5 | raw file
 1/** 
 2 * @file listener_fmod.h
 3 * @brief Description of LISTENER class abstracting the audio support
 4 * as an FMOD 3D implementation (windows and Linux)
 5 *
 6 * $LicenseInfo:firstyear=2002&license=viewerlgpl$
 7 * Second Life Viewer Source Code
 8 * Copyright (C) 2010, Linden Research, Inc.
 9 * 
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation;
13 * version 2.1 of the License only.
14 * 
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18 * Lesser General Public License for more details.
19 * 
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
23 * 
24 * Linden Research, Inc., 945 Battery Street, San Francisco, CA  94111  USA
25 * $/LicenseInfo$
26 */
27
28#ifndef LL_LISTENER_FMOD_H
29#define LL_LISTENER_FMOD_H
30
31#include "lllistener.h"
32
33class LLListener_FMOD : public LLListener
34{
35 public:  
36	LLListener_FMOD();
37	virtual ~LLListener_FMOD();
38	virtual void init();  
39
40	virtual void translate(LLVector3 offset);
41	virtual void setPosition(LLVector3 pos);
42	virtual void setVelocity(LLVector3 vel);
43	virtual void orient(LLVector3 up, LLVector3 at);
44	virtual void commitDeferredChanges();
45
46	virtual void setDopplerFactor(F32 factor);
47	virtual F32 getDopplerFactor();
48	virtual void setRolloffFactor(F32 factor);
49	virtual F32 getRolloffFactor();
50
51 protected:
52	 F32 mDopplerFactor;
53	 F32 mRolloffFactor;
54};
55
56#endif
57
58