PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/newview/llviewermedia_streamingaudio.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 63 lines | 25 code | 12 blank | 26 comment | 0 complexity | 572eb03f2052ac5ab0ea8f1aecdad957 MD5 | raw file
 1/** 
 2 * @file llviewermedia_streamingaudio.h
 3 * @author Tofu Linden
 4 * @brief Definition of LLStreamingAudio_MediaPlugins implementation - an implementation of the streaming audio interface which is implemented as a client of the media plugins API.
 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
28#ifndef LL_VIEWERMEDIA_STREAMINGAUDIO_H
29#define LL_VIEWERMEDIA_STREAMINGAUDIO_H
30
31
32#include "stdtypes.h" // from llcommon
33
34#include "llstreamingaudio.h"
35
36class LLPluginClassMedia;
37
38class LLStreamingAudio_MediaPlugins : public LLStreamingAudioInterface
39{
40 public:
41	LLStreamingAudio_MediaPlugins();
42	/*virtual*/ ~LLStreamingAudio_MediaPlugins();
43
44	/*virtual*/ void start(const std::string& url);
45	/*virtual*/ void stop();
46	/*virtual*/ void pause(int pause);
47	/*virtual*/ void update();
48	/*virtual*/ int isPlaying();
49	/*virtual*/ void setGain(F32 vol);
50	/*virtual*/ F32 getGain();
51	/*virtual*/ std::string getURL();
52
53private:
54	LLPluginClassMedia* initializeMedia(const std::string& media_type);
55
56	LLPluginClassMedia *mMediaPlugin;
57
58	std::string mURL;
59	F32 mGain;
60};
61
62
63#endif //LL_VIEWERMEDIA_STREAMINGAUDIO_H