diff options
author | Armin Weatherwax | 2010-06-14 12:04:49 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-09-23 15:38:25 +0200 |
commit | 35df5441d3e2789663532c948731aff3a1e04728 (patch) | |
tree | ac7674289784a5f96106ea507637055a8dada78a /linden/indra/newview/llviewermedia_streamingaudio.h | |
parent | Changed version to Experimental 2010.09.18 (diff) | |
download | meta-impy-35df5441d3e2789663532c948731aff3a1e04728.zip meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.gz meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.bz2 meta-impy-35df5441d3e2789663532c948731aff3a1e04728.tar.xz |
llmediaplugins first step
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermedia_streamingaudio.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/linden/indra/newview/llviewermedia_streamingaudio.h b/linden/indra/newview/llviewermedia_streamingaudio.h new file mode 100644 index 0000000..270bab7 --- /dev/null +++ b/linden/indra/newview/llviewermedia_streamingaudio.h | |||
@@ -0,0 +1,69 @@ | |||
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=viewergpl$ | ||
7 | * | ||
8 | * Copyright (c) 2009, Linden Research, Inc. | ||
9 | * | ||
10 | * Second Life Viewer Source Code | ||
11 | * The source code in this file ("Source Code") is provided by Linden Lab | ||
12 | * to you under the terms of the GNU General Public License, version 2.0 | ||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | ||
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | ||
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | ||
16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 | ||
17 | * | ||
18 | * There are special exceptions to the terms and conditions of the GPL as | ||
19 | * it is applied to this Source Code. View the full text of the exception | ||
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | ||
21 | * online at | ||
22 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
23 | * | ||
24 | * By copying, modifying or distributing this software, you acknowledge | ||
25 | * that you have read and understood your obligations described above, | ||
26 | * and agree to abide by those obligations. | ||
27 | * | ||
28 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
30 | * COMPLETENESS OR PERFORMANCE. | ||
31 | * $/LicenseInfo$ | ||
32 | */ | ||
33 | |||
34 | #ifndef LL_VIEWERMEDIA_STREAMINGAUDIO_H | ||
35 | #define LL_VIEWERMEDIA_STREAMINGAUDIO_H | ||
36 | |||
37 | |||
38 | #include "stdtypes.h" // from llcommon | ||
39 | |||
40 | #include "llstreamingaudio.h" | ||
41 | |||
42 | class LLPluginClassMedia; | ||
43 | |||
44 | class LLStreamingAudio_MediaPlugins : public LLStreamingAudioInterface | ||
45 | { | ||
46 | public: | ||
47 | LLStreamingAudio_MediaPlugins(); | ||
48 | /*virtual*/ ~LLStreamingAudio_MediaPlugins(); | ||
49 | |||
50 | /*virtual*/ void start(const std::string& url); | ||
51 | /*virtual*/ void stop(); | ||
52 | /*virtual*/ void pause(int pause); | ||
53 | /*virtual*/ void update(); | ||
54 | /*virtual*/ int isPlaying(); | ||
55 | /*virtual*/ void setGain(F32 vol); | ||
56 | /*virtual*/ F32 getGain(); | ||
57 | /*virtual*/ std::string getURL(); | ||
58 | |||
59 | private: | ||
60 | LLPluginClassMedia* initializeMedia(const std::string& media_type); | ||
61 | |||
62 | LLPluginClassMedia *mMediaPlugin; | ||
63 | |||
64 | std::string mURL; | ||
65 | F32 mGain; | ||
66 | }; | ||
67 | |||
68 | |||
69 | #endif //LL_VIEWERMEDIA_STREAMINGAUDIO_H | ||