-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathIDirectSound3DListenerEx.h
executable file
·75 lines (62 loc) · 3.68 KB
/
IDirectSound3DListenerEx.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//////////////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2003-2007, Arne Bockholdt, [email protected]
//
// This file is part of Direct Sound Control.
//
// Direct Sound Control is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Direct Sound Control is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with Direct Sound Control. If not, see <http://www.gnu.org/licenses/>.
//
//////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
//////////////////////////////////////////////////////////////////////////////////////////////
#include "dsound.h"
//////////////////////////////////////////////////////////////////////////////////////////////
#define IDIRECTSOUND3DLISTENER8EX_CLASS_NAME "IDirectSound3DListener8Ex"
//////////////////////////////////////////////////////////////////////////////////////////////
#ifdef ENABLE_LOG
extern void LogMessage(const char* szClassName, void* pInstance, char* szMessage );
extern bool g_bLogDirectSound3DListener;
#endif // ENABLE_LOG
//////////////////////////////////////////////////////////////////////////////////////////////
class IDirectSound3DListener8Ex : public IDirectSound3DListener8
{
public:
IDirectSound3DListener8Ex(void);
virtual ~IDirectSound3DListener8Ex(void);
virtual HRESULT __stdcall QueryInterface (REFIID, LPVOID *);
virtual ULONG __stdcall AddRef();
virtual ULONG __stdcall Release();
// IDirectSound3DListener methods
virtual HRESULT __stdcall GetAllParameters ( LPDS3DLISTENER pListener);
virtual HRESULT __stdcall GetDistanceFactor ( D3DVALUE* pflDistanceFactor);
virtual HRESULT __stdcall GetDopplerFactor ( D3DVALUE* pflDopplerFactor);
virtual HRESULT __stdcall GetOrientation ( D3DVECTOR* pvOrientFront, D3DVECTOR* pvOrientTop);
virtual HRESULT __stdcall GetPosition ( D3DVECTOR* pvPosition);
virtual HRESULT __stdcall GetRolloffFactor ( D3DVALUE* pflRolloffFactor);
virtual HRESULT __stdcall GetVelocity ( D3DVECTOR* pvVelocity);
virtual HRESULT __stdcall SetAllParameters ( LPCDS3DLISTENER pcListener, DWORD dwApply);
virtual HRESULT __stdcall SetDistanceFactor ( D3DVALUE flDistanceFactor, DWORD dwApply);
virtual HRESULT __stdcall SetDopplerFactor ( D3DVALUE flDopplerFactor, DWORD dwApply);
virtual HRESULT __stdcall SetOrientation ( D3DVALUE xFront, D3DVALUE yFront, D3DVALUE zFront, D3DVALUE xTop, D3DVALUE yTop, D3DVALUE zTop, DWORD dwApply);
virtual HRESULT __stdcall SetPosition ( D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
virtual HRESULT __stdcall SetRolloffFactor ( D3DVALUE flRolloffFactor, DWORD dwApply);
virtual HRESULT __stdcall SetVelocity ( D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
virtual HRESULT __stdcall CommitDeferredSettings ();
LPDIRECTSOUND3DLISTENER8 m_lpDirectSound3DListener8;
protected :
#ifdef ENABLE_LOG
const char* m_cszClassName;
#endif // ENABLE_LOG
};
//////////////////////////////////////////////////////////////////////////////////////////////