PageRenderTime 29ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/newview/llaudiosourcevo.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 51 lines | 18 code | 7 blank | 26 comment | 0 complexity | 111776312bae29e01f1449fd80c045a2 MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file llaudiosourcevo.h
  3. * @author Douglas Soo, James Cook
  4. * @brief Audio sources attached to viewer objects
  5. *
  6. * $LicenseInfo:firstyear=2006&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_LLAUDIOSOURCEVO_H
  28. #define LL_LLAUDIOSOURCEVO_H
  29. #include "llaudioengine.h"
  30. #include "llviewerobject.h"
  31. class LLViewerObject;
  32. class LLAudioSourceVO : public LLAudioSource
  33. {
  34. public:
  35. LLAudioSourceVO(const LLUUID &sound_id, const LLUUID& owner_id, const F32 gain, LLViewerObject *objectp);
  36. virtual ~LLAudioSourceVO();
  37. /*virtual*/ void update();
  38. /*virtual*/ void setGain(const F32 gain);
  39. private:
  40. void updateMute();
  41. private:
  42. LLPointer<LLViewerObject> mObjectp;
  43. };
  44. #endif // LL_LLAUDIOSOURCEVO_H