doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
idAudioBufferWIN32 Class Reference
Inheritance diagram for idAudioBufferWIN32:
idAudioBuffer

Public Member Functions

 idAudioBufferWIN32 (LPDIRECTSOUNDBUFFER apDSBuffer, dword dwDSBufferSize, idWaveFile *pWaveFile=NULL)
 
 ~idAudioBufferWIN32 ()
 
int FillBufferWithSound (LPDIRECTSOUNDBUFFER pDSB, bool bRepeatWavIfBufferLarger)
 
bool Lock (void **pDSLockedBuffer, ulong *dwDSLockedBufferSize)
 
bool Unlock (void *pDSLockedBuffer, dword dwDSLockedBufferSize)
 
bool GetCurrentPosition (ulong *pdwCurrentWriteCursor)
 
int Play (dword dwPriority=0, dword dwFlags=0)
 
int Stop (void)
 
int Reset (void)
 
bool IsSoundPlaying (void)
 
void SetVolume (float x)
 

Public Attributes

idWaveFilem_pWaveFile
 

Private Member Functions

int RestoreBuffer (LPDIRECTSOUNDBUFFER pDSB, bool *pbWasRestored)
 

Private Attributes

LPDIRECTSOUNDBUFFER m_apDSBuffer
 
dword m_dwDSBufferSize
 

Detailed Description

Definition at line 45 of file win_snd.cpp.

Constructor & Destructor Documentation

idAudioBufferWIN32::idAudioBufferWIN32 ( LPDIRECTSOUNDBUFFER  apDSBuffer,
dword  dwDSBufferSize,
idWaveFile pWaveFile = NULL 
)

Definition at line 554 of file win_snd.cpp.

idAudioBufferWIN32::~idAudioBufferWIN32 ( )

Definition at line 573 of file win_snd.cpp.

Member Function Documentation

int idAudioBufferWIN32::FillBufferWithSound ( LPDIRECTSOUNDBUFFER  pDSB,
bool  bRepeatWavIfBufferLarger 
)

Definition at line 585 of file win_snd.cpp.

bool idAudioBufferWIN32::GetCurrentPosition ( ulong pdwCurrentWriteCursor)

Definition at line 822 of file win_snd.cpp.

bool idAudioBufferWIN32::IsSoundPlaying ( void  )
virtual

Implements idAudioBuffer.

Definition at line 771 of file win_snd.cpp.

bool idAudioBufferWIN32::Lock ( void **  pDSLockedBuffer,
ulong dwDSLockedBufferSize 
)

Definition at line 791 of file win_snd.cpp.

int idAudioBufferWIN32::Play ( dword  dwPriority = 0,
dword  dwFlags = 0 
)
virtual

Implements idAudioBuffer.

Definition at line 706 of file win_snd.cpp.

int idAudioBufferWIN32::Reset ( void  )
virtual

Implements idAudioBuffer.

Definition at line 755 of file win_snd.cpp.

int idAudioBufferWIN32::RestoreBuffer ( LPDIRECTSOUNDBUFFER  pDSB,
bool pbWasRestored 
)
private

Definition at line 661 of file win_snd.cpp.

void idAudioBufferWIN32::SetVolume ( float  x)
virtual

Implements idAudioBuffer.

Definition at line 843 of file win_snd.cpp.

int idAudioBufferWIN32::Stop ( void  )
virtual

Implements idAudioBuffer.

Definition at line 739 of file win_snd.cpp.

bool idAudioBufferWIN32::Unlock ( void pDSLockedBuffer,
dword  dwDSLockedBufferSize 
)

Definition at line 811 of file win_snd.cpp.

Member Data Documentation

LPDIRECTSOUNDBUFFER idAudioBufferWIN32::m_apDSBuffer
private

Definition at line 64 of file win_snd.cpp.

dword idAudioBufferWIN32::m_dwDSBufferSize
private

Definition at line 65 of file win_snd.cpp.

idWaveFile* idAudioBufferWIN32::m_pWaveFile

Definition at line 62 of file win_snd.cpp.


The documentation for this class was generated from the following file: