Changeset 5292 for trunk/src/dsound/OS2SNDBUFFER.H
- Timestamp:
- Mar 10, 2001, 7:21:06 AM (25 years ago)
- File:
-
- 1 edited
-
trunk/src/dsound/OS2SNDBUFFER.H (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dsound/OS2SNDBUFFER.H
r3555 r5292 1 /* $Id: OS2SNDBUFFER.H,v 1. 7 2000-05-18 20:37:09mike Exp $ */1 /* $Id: OS2SNDBUFFER.H,v 1.8 2001-03-10 06:21:06 mike Exp $ */ 2 2 3 3 /* … … 18 18 #define THIS_ VOID*This, 19 19 20 // simple structure to handle duplicated buffers - the first DWORD of 21 // a sound buffer contains the buffer's usage count (to prevent freeing 22 // of buffers still in use) 23 typedef struct _SOUNDBUF { 24 DWORD dwReferences; 25 char pData[1]; 26 } SOUNDBUF; 27 20 28 // a forward declaration of some classes is needed here! 21 29 class OS2IDirectSoundNotify; … … 31 39 32 40 OS2IDirectSoundBuffer(OS2IDirectSound *DSound, const DSBUFFERDESC *lpDSBufferDesc); 41 OS2IDirectSoundBuffer(OS2IDirectSound *DSound, OS2IDirectSoundBuffer *srcBuf); 33 42 OS2IDirectSoundBuffer() {}; 34 43 ~OS2IDirectSoundBuffer(); … … 39 48 inline HRESULT GetLastError() { return lastError; }; 40 49 inline void SetNotify(OS2IDirectSoundNotify *_notify) { 41 notify = _notify; };50 notify = _notify; }; 42 51 inline void Set3DBuffer(OS2IDirectSound3DBuffer *_buffer3D) { 43 buffer3D = _buffer3D; };52 buffer3D = _buffer3D; }; 44 53 private: 45 54 … … 61 70 LONG frac; // saved mixer position overflow 62 71 63 char *lpBuffer; // sound data 72 SOUNDBUF *lpSndBuffer; // sound data + reference count 73 char *lpBuffer; // actual sound data 64 74 65 75 OS2IDirectSoundNotify* notify; // pointer to the associated Notify object (if exists)
Note:
See TracChangeset
for help on using the changeset viewer.
