summaryrefslogtreecommitdiff
path: root/indra/newview/llaudiosourcevo.h
blob: b16a70ec98f32a955377721c0558f2ca3a97b3b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/** 
 * @file llaudiosourcevo.h
 * @author Douglas Soo, James Cook
 * @brief Audio sources attached to viewer objects
 *
 * Copyright (c) 2006-$CurrentYear$, Linden Research, Inc.
 * $License$
 */

#ifndef LL_LLAUDIOSOURCEVO_H
#define LL_LLAUDIOSOURCEVO_H

#include "audioengine.h"
#include "llviewerobject.h"

class LLViewerObject;

class LLAudioSourceVO : public LLAudioSource
{
public:
	LLAudioSourceVO(const LLUUID &sound_id, const LLUUID& owner_id, const F32 gain, LLViewerObject *objectp);
	virtual ~LLAudioSourceVO();
	/*virtual*/	void update();
	/*virtual*/ void setGain(const F32 gain);

private:
	void updateGain();

private:
	LLPointer<LLViewerObject>	mObjectp;
	F32							mActualGain; // The "real" gain, when not off due to parcel effects
};

#endif // LL_LLAUDIOSOURCEVO_H