PageRenderTime 10ms CodeModel.GetById 1ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/llaudio/lllistener_ds3d.h

https://bitbucket.org/lindenlab/viewer-beta/
C++ Header | 68 lines | 30 code | 12 blank | 26 comment | 0 complexity | 6b9b5eab45d194187fd320685a9a0525 MD5 | raw file
 1/** 
 2 * @file listener_ds3d.h
 3 * @brief Description of LISTENER class abstracting the audio support
 4 * as a DirectSound 3D implementation (windows only)
 5 *
 6 * $LicenseInfo:firstyear=2000&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_LISTENER_DS3D_H
29#define LL_LISTENER_DS3D_H
30
31#include "lllistener.h"
32
33#include <dmusici.h>
34#include <dsound.h>
35#include <ks.h>
36
37class LLListener_DS3D : public LLListener
38{
39 private:
40 protected:
41	IDirectSound3DListener8 *m3DListener;
42 public:
43
44 private:
45 protected:
46 public:  
47	LLListener_DS3D();
48	virtual ~LLListener_DS3D();
49	virtual void init();  
50
51	virtual void setDS3DLPtr (IDirectSound3DListener8 *listener_p);
52
53	virtual void translate(LLVector3 offset);
54	virtual void setPosition(LLVector3 pos);
55	virtual void setVelocity(LLVector3 vel);
56	virtual void orient(LLVector3 up, LLVector3 at);
57
58	virtual void setDopplerFactor(F32 factor);
59	virtual F32 getDopplerFactor();
60	virtual void setRolloffFactor(F32 factor);
61	virtual F32 getRolloffFactor();
62
63	virtual void commitDeferredChanges();
64};
65
66#endif
67
68