[3099] | 1 | /*
|
---|
| 2 | * DirectSound OS2IDirectSound3DBuffer class
|
---|
| 3 | *
|
---|
| 4 | * Copyright 2000 Michal Necasek
|
---|
| 5 | *
|
---|
| 6 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 7 | *
|
---|
| 8 | */
|
---|
| 9 | #ifndef __OS23DBUFFER_H__
|
---|
| 10 | #define __OS23DBUFFER_H__
|
---|
| 11 |
|
---|
| 12 | #undef THIS
|
---|
| 13 | #define THIS IDirectSound3DBuffer*This
|
---|
| 14 |
|
---|
| 15 | #undef THIS_
|
---|
| 16 | #define THIS_ IDirectSound3DBuffer*This,
|
---|
| 17 |
|
---|
| 18 | class OS2IDirectSound3DBuffer
|
---|
| 19 | {
|
---|
| 20 | public:
|
---|
| 21 | //this one has to go first!
|
---|
| 22 | IDirectSound3DBufferVtbl *lpVtbl;
|
---|
| 23 | IDirectSound3DBufferVtbl Vtbl;
|
---|
| 24 |
|
---|
| 25 | OS2IDirectSound3DBuffer(OS2IDirectSoundBuffer *parentBuffer);
|
---|
| 26 | ~OS2IDirectSound3DBuffer();
|
---|
| 27 |
|
---|
| 28 | int Referenced;
|
---|
| 29 |
|
---|
| 30 | private:
|
---|
| 31 |
|
---|
| 32 | protected:
|
---|
| 33 | OS2IDirectSoundBuffer *lpSoundBuffer; // parent sound buffer
|
---|
| 34 |
|
---|
| 35 | DS3DBUFFER data3D; // all the 3DBuffer data
|
---|
| 36 |
|
---|
| 37 | friend HRESULT __stdcall Sound3DBufferQueryInterface(THIS, REFIID riid, LPVOID * ppvObj);
|
---|
| 38 | friend ULONG __stdcall Sound3DBufferAddRef(THIS);
|
---|
| 39 | friend ULONG __stdcall Sound3DBufferRelease(THIS);
|
---|
| 40 | friend HRESULT __stdcall Sound3DBufferGetAllParameters(THIS, LPDS3DBUFFER lpDs3dBuffer);
|
---|
| 41 | friend HRESULT __stdcall Sound3DBufferSetAllParameters(THIS, LPCDS3DBUFFER lpcDs3dBuffer, DWORD dwApply);
|
---|
| 42 | friend HRESULT __stdcall Sound3DBufferGetMaxDistance(THIS, LPD3DVALUE lpflMaxDistance);
|
---|
| 43 | friend HRESULT __stdcall Sound3DBufferGetMinDistance(THIS, LPD3DVALUE lpflMinDistance);
|
---|
| 44 | friend HRESULT __stdcall Sound3DBufferSetMaxDistance(THIS, D3DVALUE flMaxDistance, DWORD dwApply);
|
---|
| 45 | friend HRESULT __stdcall Sound3DBufferSetMinDistance(THIS, D3DVALUE flMinDistance, DWORD dwApply);
|
---|
| 46 | friend HRESULT __stdcall Sound3DBufferGetMode(THIS, LPDWORD lpdwMode);
|
---|
| 47 | friend HRESULT __stdcall Sound3DBufferSetMode(THIS, DWORD dwMode, DWORD dwApply);
|
---|
| 48 | friend HRESULT __stdcall Sound3DBufferGetPosition(THIS, LPD3DVECTOR lpvPosition);
|
---|
| 49 | friend HRESULT __stdcall Sound3DBufferSetPosition(THIS, D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
|
---|
| 50 | friend HRESULT __stdcall Sound3DBufferGetConeAngles(THIS, LPDWORD lpdwInsideConeAngle, LPDWORD lpdwOutsideConeAngle);
|
---|
| 51 | friend HRESULT __stdcall Sound3DBufferSetConeAngles(THIS, DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply);
|
---|
| 52 | friend HRESULT __stdcall Sound3DBufferGetConeOrientation(THIS, LPD3DVECTOR lpvOrientation);
|
---|
| 53 | friend HRESULT __stdcall Sound3DBufferSetConeOrientation(THIS, D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
|
---|
| 54 | friend HRESULT __stdcall Sound3DBufferGetConeOutsideVolume(THIS, LPLONG lplConeOutsideVolume);
|
---|
| 55 | friend HRESULT __stdcall Sound3DBufferSetConeOutsideVolume(THIS, LONG lConeOutsideVolume, DWORD dwApply);
|
---|
| 56 | friend HRESULT __stdcall Sound3DBufferGetVelocity(THIS, LPD3DVECTOR lpvVelocity);
|
---|
| 57 | friend HRESULT __stdcall Sound3DBufferSetVelocity(THIS, D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
|
---|
| 58 | };
|
---|
| 59 |
|
---|
[21916] | 60 | HRESULT __stdcall Sound3DBufferQueryInterface(THIS, REFIID riid, LPVOID * ppvObj);
|
---|
| 61 | ULONG __stdcall Sound3DBufferAddRef(THIS);
|
---|
| 62 | ULONG __stdcall Sound3DBufferRelease(THIS);
|
---|
| 63 | HRESULT __stdcall Sound3DBufferGetAllParameters(THIS, LPDS3DBUFFER lpDs3dBuffer);
|
---|
| 64 | HRESULT __stdcall Sound3DBufferSetAllParameters(THIS, LPCDS3DBUFFER lpcDs3dBuffer, DWORD dwApply);
|
---|
| 65 | HRESULT __stdcall Sound3DBufferGetMaxDistance(THIS, LPD3DVALUE lpflMaxDistance);
|
---|
| 66 | HRESULT __stdcall Sound3DBufferGetMinDistance(THIS, LPD3DVALUE lpflMinDistance);
|
---|
| 67 | HRESULT __stdcall Sound3DBufferSetMaxDistance(THIS, D3DVALUE flMaxDistance, DWORD dwApply);
|
---|
| 68 | HRESULT __stdcall Sound3DBufferSetMinDistance(THIS, D3DVALUE flMinDistance, DWORD dwApply);
|
---|
| 69 | HRESULT __stdcall Sound3DBufferGetMode(THIS, LPDWORD lpdwMode);
|
---|
| 70 | HRESULT __stdcall Sound3DBufferSetMode(THIS, DWORD dwMode, DWORD dwApply);
|
---|
| 71 | HRESULT __stdcall Sound3DBufferGetPosition(THIS, LPD3DVECTOR lpvPosition);
|
---|
| 72 | HRESULT __stdcall Sound3DBufferSetPosition(THIS, D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
|
---|
| 73 | HRESULT __stdcall Sound3DBufferGetConeAngles(THIS, LPDWORD lpdwInsideConeAngle, LPDWORD lpdwOutsideConeAngle);
|
---|
| 74 | HRESULT __stdcall Sound3DBufferSetConeAngles(THIS, DWORD dwInsideConeAngle, DWORD dwOutsideConeAngle, DWORD dwApply);
|
---|
| 75 | HRESULT __stdcall Sound3DBufferGetConeOrientation(THIS, LPD3DVECTOR lpvOrientation);
|
---|
| 76 | HRESULT __stdcall Sound3DBufferSetConeOrientation(THIS, D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
|
---|
| 77 | HRESULT __stdcall Sound3DBufferGetConeOutsideVolume(THIS, LPLONG lplConeOutsideVolume);
|
---|
| 78 | HRESULT __stdcall Sound3DBufferSetConeOutsideVolume(THIS, LONG lConeOutsideVolume, DWORD dwApply);
|
---|
| 79 | HRESULT __stdcall Sound3DBufferGetVelocity(THIS, LPD3DVECTOR lpvVelocity);
|
---|
| 80 | HRESULT __stdcall Sound3DBufferSetVelocity(THIS, D3DVALUE x, D3DVALUE y, D3DVALUE z, DWORD dwApply);
|
---|
| 81 |
|
---|
[3099] | 82 | #endif
|
---|