PageRenderTime 29ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llaudio/lllistener_ds3d.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 68 lines | 30 code | 12 blank | 26 comment | 0 complexity | 6b9b5eab45d194187fd320685a9a0525 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file listener_ds3d.h
  3. * @brief Description of LISTENER class abstracting the audio support
  4. * as a DirectSound 3D implementation (windows only)
  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_DS3D_H
  28. #define LL_LISTENER_DS3D_H
  29. #include "lllistener.h"
  30. #include <dmusici.h>
  31. #include <dsound.h>
  32. #include <ks.h>
  33. class LLListener_DS3D : public LLListener
  34. {
  35. private:
  36. protected:
  37. IDirectSound3DListener8 *m3DListener;
  38. public:
  39. private:
  40. protected:
  41. public:
  42. LLListener_DS3D();
  43. virtual ~LLListener_DS3D();
  44. virtual void init();
  45. virtual void setDS3DLPtr (IDirectSound3DListener8 *listener_p);
  46. virtual void translate(LLVector3 offset);
  47. virtual void setPosition(LLVector3 pos);
  48. virtual void setVelocity(LLVector3 vel);
  49. virtual void orient(LLVector3 up, LLVector3 at);
  50. virtual void setDopplerFactor(F32 factor);
  51. virtual F32 getDopplerFactor();
  52. virtual void setRolloffFactor(F32 factor);
  53. virtual F32 getRolloffFactor();
  54. virtual void commitDeferredChanges();
  55. };
  56. #endif