PageRenderTime 35ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/indra/llaudio/llstreamingaudio_fmod.h

https://bitbucket.org/lindenlab/viewer-beta/
C Header | 62 lines | 26 code | 10 blank | 26 comment | 0 complexity | e86627e46f17a365e25d6336de8e8b2b MD5 | raw file
Possible License(s): LGPL-2.1
  1. /**
  2. * @file streamingaudio_fmod.h
  3. * @author Tofu Linden
  4. * @brief Definition of LLStreamingAudio_FMOD implementation
  5. *
  6. * $LicenseInfo:firstyear=2009&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_STREAMINGAUDIO_FMOD_H
  28. #define LL_STREAMINGAUDIO_FMOD_H
  29. #include "stdtypes.h" // from llcommon
  30. #include "llstreamingaudio.h"
  31. class LLAudioStreamManagerFMOD;
  32. class LLStreamingAudio_FMOD : public LLStreamingAudioInterface
  33. {
  34. public:
  35. LLStreamingAudio_FMOD();
  36. /*virtual*/ ~LLStreamingAudio_FMOD();
  37. /*virtual*/ void start(const std::string& url);
  38. /*virtual*/ void stop();
  39. /*virtual*/ void pause(int pause);
  40. /*virtual*/ void update();
  41. /*virtual*/ int isPlaying();
  42. /*virtual*/ void setGain(F32 vol);
  43. /*virtual*/ F32 getGain();
  44. /*virtual*/ std::string getURL();
  45. private:
  46. LLAudioStreamManagerFMOD *mCurrentInternetStreamp;
  47. int mFMODInternetStreamChannel;
  48. std::list<LLAudioStreamManagerFMOD *> mDeadStreams;
  49. std::string mURL;
  50. F32 mGain;
  51. };
  52. #endif // LL_STREAMINGAUDIO_FMOD_H