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
idAudioHardwareALSA Class Reference

#include <sound.h>

Inheritance diagram for idAudioHardwareALSA:
idAudioHardware

Public Member Functions

 idAudioHardwareALSA ()
 
virtual ~idAudioHardwareALSA ()
 
bool DLOpen ()
 
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 (void)
 
int GetMixBufferSize (void)
 
short * GetMixBuffer (void)
 
- Public Member Functions inherited from idAudioHardware
virtual ~idAudioHardware ()
 

Private Member Functions

void Release ()
 
void InitFailed ()
 
void PlayTestPattern ()
 

Private Attributes

snd_pcm_t * m_pcm_handle
 
unsigned int m_channels
 
voidm_buffer
 
int m_buffer_size
 
int m_remainingFrames
 
voidm_handle
 
pfn_snd_asoundlib_version id_snd_asoundlib_version
 
pfn_snd_pcm_avail_update id_snd_pcm_avail_update
 
pfn_snd_pcm_close id_snd_pcm_close
 
pfn_snd_strerror id_snd_strerror
 
pfn_snd_pcm_hw_params id_snd_pcm_hw_params
 
pfn_snd_pcm_hw_params_any id_snd_pcm_hw_params_any
 
pfn_snd_pcm_hw_params_get_buffer_size id_snd_pcm_hw_params_get_buffer_size
 
pfn_snd_pcm_hw_params_set_access id_snd_pcm_hw_params_set_access
 
pfn_snd_pcm_hw_params_set_buffer_size_min id_snd_pcm_hw_params_set_buffer_size_min
 
pfn_snd_pcm_hw_params_set_channels id_snd_pcm_hw_params_set_channels
 
pfn_snd_pcm_hw_params_set_format id_snd_pcm_hw_params_set_format
 
pfn_snd_pcm_hw_params_set_rate id_snd_pcm_hw_params_set_rate
 
pfn_snd_pcm_hw_params_sizeof id_snd_pcm_hw_params_sizeof
 
pfn_snd_pcm_open id_snd_pcm_open
 
pfn_snd_pcm_prepare id_snd_pcm_prepare
 
pfn_snd_pcm_state id_snd_pcm_state
 
pfn_snd_pcm_writei id_snd_pcm_writei
 

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 114 of file sound.h.

Constructor & Destructor Documentation

idAudioHardwareALSA::idAudioHardwareALSA ( )
inline

Definition at line 130 of file sound.h.

idAudioHardwareALSA::~idAudioHardwareALSA ( )
virtual

Definition at line 243 of file sound_alsa.cpp.

Member Function Documentation

bool idAudioHardwareALSA::DLOpen ( void  )

Definition at line 43 of file sound_alsa.cpp.

bool idAudioHardwareALSA::Flush ( void  )
virtual

Implements idAudioHardware.

Definition at line 272 of file sound_alsa.cpp.

bool idAudioHardwareALSA::GetCurrentPosition ( ulong pdwCurrentWriteCursor)
inlinevirtual

Implements idAudioHardware.

Definition at line 149 of file sound.h.

short * idAudioHardwareALSA::GetMixBuffer ( void  )
virtual

Implements idAudioHardware.

Definition at line 263 of file sound_alsa.cpp.

int idAudioHardwareALSA::GetMixBufferSize ( void  )
virtual

Implements idAudioHardware.

Definition at line 254 of file sound_alsa.cpp.

int idAudioHardwareALSA::GetNumberOfSpeakers ( void  )
inlinevirtual

Implements idAudioHardware.

Definition at line 154 of file sound.h.

void idAudioHardwareALSA::InitFailed ( )
private

Definition at line 110 of file sound_alsa.cpp.

bool idAudioHardwareALSA::Initialize ( void  )
virtual

Implements idAudioHardware.

Definition at line 122 of file sound_alsa.cpp.

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

Implements idAudioHardware.

Definition at line 147 of file sound.h.

void idAudioHardwareALSA::PlayTestPattern ( )
private
void idAudioHardwareALSA::Release ( void  )
private

Definition at line 88 of file sound_alsa.cpp.

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

Implements idAudioHardware.

Definition at line 148 of file sound.h.

void idAudioHardwareALSA::Write ( bool  flushing)
virtual

Implements idAudioHardware.

Definition at line 293 of file sound_alsa.cpp.

Member Data Documentation

pfn_snd_asoundlib_version idAudioHardwareALSA::id_snd_asoundlib_version
private

Definition at line 164 of file sound.h.

pfn_snd_pcm_avail_update idAudioHardwareALSA::id_snd_pcm_avail_update
private

Definition at line 166 of file sound.h.

pfn_snd_pcm_close idAudioHardwareALSA::id_snd_pcm_close
private

Definition at line 167 of file sound.h.

pfn_snd_pcm_hw_params idAudioHardwareALSA::id_snd_pcm_hw_params
private

Definition at line 169 of file sound.h.

pfn_snd_pcm_hw_params_any idAudioHardwareALSA::id_snd_pcm_hw_params_any
private

Definition at line 170 of file sound.h.

pfn_snd_pcm_hw_params_get_buffer_size idAudioHardwareALSA::id_snd_pcm_hw_params_get_buffer_size
private

Definition at line 171 of file sound.h.

pfn_snd_pcm_hw_params_set_access idAudioHardwareALSA::id_snd_pcm_hw_params_set_access
private

Definition at line 172 of file sound.h.

pfn_snd_pcm_hw_params_set_buffer_size_min idAudioHardwareALSA::id_snd_pcm_hw_params_set_buffer_size_min
private

Definition at line 173 of file sound.h.

pfn_snd_pcm_hw_params_set_channels idAudioHardwareALSA::id_snd_pcm_hw_params_set_channels
private

Definition at line 174 of file sound.h.

pfn_snd_pcm_hw_params_set_format idAudioHardwareALSA::id_snd_pcm_hw_params_set_format
private

Definition at line 175 of file sound.h.

pfn_snd_pcm_hw_params_set_rate idAudioHardwareALSA::id_snd_pcm_hw_params_set_rate
private

Definition at line 176 of file sound.h.

pfn_snd_pcm_hw_params_sizeof idAudioHardwareALSA::id_snd_pcm_hw_params_sizeof
private

Definition at line 177 of file sound.h.

pfn_snd_pcm_open idAudioHardwareALSA::id_snd_pcm_open
private

Definition at line 178 of file sound.h.

pfn_snd_pcm_prepare idAudioHardwareALSA::id_snd_pcm_prepare
private

Definition at line 179 of file sound.h.

pfn_snd_pcm_state idAudioHardwareALSA::id_snd_pcm_state
private

Definition at line 180 of file sound.h.

pfn_snd_pcm_writei idAudioHardwareALSA::id_snd_pcm_writei
private

Definition at line 181 of file sound.h.

pfn_snd_strerror idAudioHardwareALSA::id_snd_strerror
private

Definition at line 168 of file sound.h.

void* idAudioHardwareALSA::m_buffer
private

Definition at line 121 of file sound.h.

int idAudioHardwareALSA::m_buffer_size
private

Definition at line 122 of file sound.h.

unsigned int idAudioHardwareALSA::m_channels
private

Definition at line 120 of file sound.h.

void* idAudioHardwareALSA::m_handle
private

Definition at line 127 of file sound.h.

snd_pcm_t* idAudioHardwareALSA::m_pcm_handle
private

Definition at line 119 of file sound.h.

int idAudioHardwareALSA::m_remainingFrames
private

Definition at line 125 of file sound.h.

const int idAudioHardwareALSA::MIXBUFFER_CHUNKS = 4
staticprivate

Definition at line 117 of file sound.h.


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