PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llaudio/lllistener_openal.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 58 lines | 23 code | 9 blank | 26 comment | 0 complexity | 25d430c66b3fe557e897d741298486ae MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file listener_openal.h
  3. * @brief Description of LISTENER class abstracting the audio support
  4. * as an OpenAL implementation
  5. *
  6. * $LicenseInfo:firstyear=2000&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. #ifndef LL_LISTENER_OPENAL_H
  28. #define LL_LISTENER_OPENAL_H
  29. #include "lllistener.h"
  30. #include "AL/al.h"
  31. #include "AL/alut.h"
  32. class LLListener_OpenAL : public LLListener
  33. {
  34. public:
  35. LLListener_OpenAL();
  36. virtual ~LLListener_OpenAL();
  37. virtual void translate(LLVector3 offset);
  38. virtual void setPosition(LLVector3 pos);
  39. virtual void setVelocity(LLVector3 vel);
  40. virtual void orient(LLVector3 up, LLVector3 at);
  41. virtual void commitDeferredChanges();
  42. virtual void setDopplerFactor(F32 factor);
  43. virtual F32 getDopplerFactor();
  44. virtual void setRolloffFactor(F32 factor);
  45. virtual F32 getRolloffFactor();
  46. protected:
  47. F32 mRolloffFactor;
  48. };
  49. #endif