Annotation of /linden_release/linden/indra/llaudio/listener.h
Parent Directory
|
Revision Log
Revision 100 - (view) (download)
| 1 : | mjm | 57 | /** |
| 2 : | * @file listener.h | ||
| 3 : | * @brief Description of LISTENER base class abstracting the audio support. | ||
| 4 : | * | ||
| 5 : | * $LicenseInfo:firstyear=2000&license=viewergpl$ | ||
| 6 : | * | ||
| 7 : | mjm | 100 | * Copyright (c) 2000-2009, Linden Research, Inc. |
| 8 : | mjm | 57 | * |
| 9 : | * Second Life Viewer Source Code | ||
| 10 : | * The source code in this file ("Source Code") is provided by Linden Lab | ||
| 11 : | * to you under the terms of the GNU General Public License, version 2.0 | ||
| 12 : | * ("GPL"), unless you have obtained a separate licensing agreement | ||
| 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 | ||
| 15 : | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
| 16 : | * | ||
| 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 | ||
| 19 : | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
| 20 : | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
| 21 : | * | ||
| 22 : | * By copying, modifying or distributing this software, you acknowledge | ||
| 23 : | * that you have read and understood your obligations described above, | ||
| 24 : | * and agree to abide by those obligations. | ||
| 25 : | * | ||
| 26 : | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
| 27 : | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
| 28 : | * COMPLETENESS OR PERFORMANCE. | ||
| 29 : | * $/LicenseInfo$ | ||
| 30 : | */ | ||
| 31 : | |||
| 32 : | #ifndef LL_LISTENER_H | ||
| 33 : | #define LL_LISTENER_H | ||
| 34 : | |||
| 35 : | #include "v3math.h" | ||
| 36 : | |||
| 37 : | class LLListener | ||
| 38 : | { | ||
| 39 : | private: | ||
| 40 : | protected: | ||
| 41 : | LLVector3 mPosition; | ||
| 42 : | LLVector3 mVelocity; | ||
| 43 : | LLVector3 mListenAt; | ||
| 44 : | LLVector3 mListenUp; | ||
| 45 : | |||
| 46 : | public: | ||
| 47 : | |||
| 48 : | private: | ||
| 49 : | protected: | ||
| 50 : | public: | ||
| 51 : | LLListener(); | ||
| 52 : | virtual ~LLListener(); | ||
| 53 : | virtual void init(); | ||
| 54 : | |||
| 55 : | virtual void set(LLVector3 pos, LLVector3 vel, LLVector3 up, LLVector3 at); | ||
| 56 : | |||
| 57 : | virtual void setPosition(LLVector3 pos); | ||
| 58 : | virtual void setVelocity(LLVector3 vel); | ||
| 59 : | |||
| 60 : | virtual void orient(LLVector3 up, LLVector3 at); | ||
| 61 : | virtual void translate(LLVector3 offset); | ||
| 62 : | |||
| 63 : | virtual void setDopplerFactor(F32 factor); | ||
| 64 : | virtual void setDistanceFactor(F32 factor); | ||
| 65 : | virtual void setRolloffFactor(F32 factor); | ||
| 66 : | |||
| 67 : | virtual LLVector3 getPosition(); | ||
| 68 : | virtual LLVector3 getAt(); | ||
| 69 : | virtual LLVector3 getUp(); | ||
| 70 : | |||
| 71 : | virtual F32 getDopplerFactor(); | ||
| 72 : | virtual F32 getDistanceFactor(); | ||
| 73 : | virtual F32 getRolloffFactor(); | ||
| 74 : | |||
| 75 : | virtual void commitDeferredChanges(); | ||
| 76 : | }; | ||
| 77 : | |||
| 78 : | #endif | ||
| 79 : |
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

