doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
idAudioHardwareOSS Class Reference

#include <sound.h>

Inheritance diagram for idAudioHardwareOSS:
idAudioHardware

Public Member Functions

 idAudioHardwareOSS ()
 
virtual ~idAudioHardwareOSS ()
 
bool Initialize (void)
 
bool Lock (void **pDSLockedBuffer, ulong *dwDSLockedBufferSize)
 
bool Unlock (void *pDSLockedBuffer, dword dwDSLockedBufferSize)
 
bool GetCurrentPosition (ulong *pdwCurrentWriteCursor)
 
bool Flush ()
 
void Write (bool flushing)
 
int GetNumberOfSpeakers ()
 
int GetMixBufferSize ()
 
short * GetMixBuffer ()
 
- Public Member Functions inherited from idAudioHardware
virtual ~idAudioHardware ()
 

Private Member Functions

void Release (bool bSilent=false)
 
void InitFailed ()
 
void ExtractOSSVersion (int version, idStr &str) const
 

Private Attributes

int m_audio_fd
 
int m_sample_format
 
unsigned int m_channels
 
unsigned int m_speed
 
voidm_buffer
 
int m_buffer_size
 
int m_loops
 
int m_writeChunks
 
int m_freeWriteChunks
 

Static Private Attributes

static const int MIXBUFFER_CHUNKS = 4
 

Additional Inherited Members

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

Detailed Description

Definition at line 31 of file sound.h.

Constructor & Destructor Documentation

idAudioHardwareOSS::idAudioHardwareOSS ( )
inline

Definition at line 51 of file sound.h.

idAudioHardwareOSS::~idAudioHardwareOSS ( )
virtual

Definition at line 85 of file sound.cpp.

Member Function Documentation

void idAudioHardwareOSS::ExtractOSSVersion ( int  version,
idStr str 
) const
private

Definition at line 132 of file sound.cpp.

bool idAudioHardwareOSS::Flush ( void  )
virtual

Implements idAudioHardware.

Definition at line 321 of file sound.cpp.

bool idAudioHardwareOSS::GetCurrentPosition ( ulong pdwCurrentWriteCursor)
inlinevirtual

Implements idAudioHardware.

Definition at line 69 of file sound.h.

short * idAudioHardwareOSS::GetMixBuffer ( void  )
virtual

Implements idAudioHardware.

Definition at line 351 of file sound.cpp.

int idAudioHardwareOSS::GetMixBufferSize ( void  )
virtual

Implements idAudioHardware.

Definition at line 341 of file sound.cpp.

int idAudioHardwareOSS::GetNumberOfSpeakers ( void  )
inlinevirtual

Implements idAudioHardware.

Definition at line 74 of file sound.h.

void idAudioHardwareOSS::InitFailed ( )
private

Definition at line 120 of file sound.cpp.

bool idAudioHardwareOSS::Initialize ( void  )
virtual

Implements idAudioHardware.

Definition at line 149 of file sound.cpp.

bool idAudioHardwareOSS::Lock ( void **  pDSLockedBuffer,
ulong dwDSLockedBufferSize 
)
inlinevirtual

Implements idAudioHardware.

Definition at line 67 of file sound.h.

void idAudioHardwareOSS::Release ( bool  bSilent = false)
private

Definition at line 94 of file sound.cpp.

bool idAudioHardwareOSS::Unlock ( void pDSLockedBuffer,
dword  dwDSLockedBufferSize 
)
inlinevirtual

Implements idAudioHardware.

Definition at line 68 of file sound.h.

void idAudioHardwareOSS::Write ( bool  flushing)
virtual

Implements idAudioHardware.

Definition at line 361 of file sound.cpp.

Member Data Documentation

int idAudioHardwareOSS::m_audio_fd
private

Definition at line 35 of file sound.h.

void* idAudioHardwareOSS::m_buffer
private

Definition at line 39 of file sound.h.

int idAudioHardwareOSS::m_buffer_size
private

Definition at line 40 of file sound.h.

unsigned int idAudioHardwareOSS::m_channels
private

Definition at line 37 of file sound.h.

int idAudioHardwareOSS::m_freeWriteChunks
private

Definition at line 48 of file sound.h.

int idAudioHardwareOSS::m_loops
private

Definition at line 43 of file sound.h.

int idAudioHardwareOSS::m_sample_format
private

Definition at line 36 of file sound.h.

unsigned int idAudioHardwareOSS::m_speed
private

Definition at line 38 of file sound.h.

int idAudioHardwareOSS::m_writeChunks
private

Definition at line 46 of file sound.h.

const int idAudioHardwareOSS::MIXBUFFER_CHUNKS = 4
staticprivate

Definition at line 33 of file sound.h.


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