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

Public Member Functions

 idAudioHardwareWIN32 ()
 
 ~idAudioHardwareWIN32 ()
 
bool Initialize ()
 
bool InitializeSpeakers (byte *buffer, int bufferSize, dword dwPrimaryFreq, dword dwPrimaryBitRate, dword dwSpeakers)
 
void SetPrimaryBufferFormat (dword dwPrimaryFreq, dword dwPrimaryBitRate, dword dwSpeakers)
 
int Create (idWaveFile *pWaveFile, idAudioBuffer **ppiab)
 
int Create (idAudioBuffer **ppSound, const char *strWaveFileName, dword dwCreationFlags=0)
 
int CreateFromMemory (idAudioBufferWIN32 **ppSound, byte *pbData, ulong ulDataSize, waveformatextensible_t *pwfx, dword dwCreationFlags=0)
 
bool Lock (void **pDSLockedBuffer, ulong *dwDSLockedBufferSize)
 
bool Unlock (void *pDSLockedBuffer, dword dwDSLockedBufferSize)
 
bool GetCurrentPosition (ulong *pdwCurrentWriteCursor)
 
int GetNumberOfSpeakers ()
 
int GetMixBufferSize ()
 
bool Flush (void)
 
void Write (bool)
 
short * GetMixBuffer (void)
 
- Public Member Functions inherited from idAudioHardware
virtual ~idAudioHardware ()
 

Private Attributes

LPDIRECTSOUND m_pDS
 
LPDIRECTSOUNDBUFFER pDSBPrimary
 
idAudioBufferWIN32speakers
 
int numSpeakers
 
int bitsPerSample
 
int bufferSize
 
int blockAlign
 

Additional Inherited Members

- Static Public Member Functions inherited from idAudioHardware
static idAudioHardwareAlloc ()
 

Detailed Description

Definition at line 70 of file win_snd.cpp.

Constructor & Destructor Documentation

idAudioHardwareWIN32::idAudioHardwareWIN32 ( )

Definition at line 116 of file win_snd.cpp.

idAudioHardwareWIN32::~idAudioHardwareWIN32 ( )

Definition at line 127 of file win_snd.cpp.

Member Function Documentation

int idAudioHardwareWIN32::Create ( idWaveFile pWaveFile,
idAudioBuffer **  ppiab 
)

Definition at line 373 of file win_snd.cpp.

int idAudioHardwareWIN32::Create ( idAudioBuffer **  ppSound,
const char *  strWaveFileName,
dword  dwCreationFlags = 0 
)

Definition at line 313 of file win_snd.cpp.

int idAudioHardwareWIN32::CreateFromMemory ( idAudioBufferWIN32 **  ppSound,
byte pbData,
ulong  ulDataSize,
waveformatextensible_t pwfx,
dword  dwCreationFlags = 0 
)

Definition at line 426 of file win_snd.cpp.

bool idAudioHardwareWIN32::Flush ( void  )
inlinevirtual

Implements idAudioHardware.

Definition at line 93 of file win_snd.cpp.

bool idAudioHardwareWIN32::GetCurrentPosition ( ulong pdwCurrentWriteCursor)
virtual

Implements idAudioHardware.

Definition at line 498 of file win_snd.cpp.

short* idAudioHardwareWIN32::GetMixBuffer ( void  )
inlinevirtual

Implements idAudioHardware.

Definition at line 95 of file win_snd.cpp.

int idAudioHardwareWIN32::GetMixBufferSize ( void  )
inlinevirtual

Implements idAudioHardware.

Definition at line 90 of file win_snd.cpp.

int idAudioHardwareWIN32::GetNumberOfSpeakers ( void  )
inlinevirtual

Implements idAudioHardware.

Definition at line 89 of file win_snd.cpp.

bool idAudioHardwareWIN32::Initialize ( void  )
virtual

Implements idAudioHardware.

Definition at line 138 of file win_snd.cpp.

bool idAudioHardwareWIN32::InitializeSpeakers ( byte buffer,
int  bufferSize,
dword  dwPrimaryFreq,
dword  dwPrimaryBitRate,
dword  dwSpeakers 
)

Definition at line 162 of file win_snd.cpp.

bool idAudioHardwareWIN32::Lock ( void **  pDSLockedBuffer,
ulong dwDSLockedBufferSize 
)
virtual

Implements idAudioHardware.

Definition at line 474 of file win_snd.cpp.

void idAudioHardwareWIN32::SetPrimaryBufferFormat ( dword  dwPrimaryFreq,
dword  dwPrimaryBitRate,
dword  dwSpeakers 
)

Definition at line 219 of file win_snd.cpp.

bool idAudioHardwareWIN32::Unlock ( void pDSLockedBuffer,
dword  dwDSLockedBufferSize 
)
virtual

Implements idAudioHardware.

Definition at line 486 of file win_snd.cpp.

void idAudioHardwareWIN32::Write ( bool  )
inlinevirtual

Implements idAudioHardware.

Definition at line 94 of file win_snd.cpp.

Member Data Documentation

int idAudioHardwareWIN32::bitsPerSample
private

Definition at line 103 of file win_snd.cpp.

int idAudioHardwareWIN32::blockAlign
private

Definition at line 105 of file win_snd.cpp.

int idAudioHardwareWIN32::bufferSize
private

Definition at line 104 of file win_snd.cpp.

LPDIRECTSOUND idAudioHardwareWIN32::m_pDS
private

Definition at line 98 of file win_snd.cpp.

int idAudioHardwareWIN32::numSpeakers
private

Definition at line 102 of file win_snd.cpp.

LPDIRECTSOUNDBUFFER idAudioHardwareWIN32::pDSBPrimary
private

Definition at line 99 of file win_snd.cpp.

idAudioBufferWIN32* idAudioHardwareWIN32::speakers
private

Definition at line 100 of file win_snd.cpp.


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