PageRenderTime 173ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llaudio/lllistener.h

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