doom3-gpl
Doom 3 GPL source release
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Typedefs
sound.h File Reference
#include <alsa/asoundlib.h>

Go to the source code of this file.

Classes

class  idAudioHardwareOSS
 
class  idAudioHardwareALSA
 

Macros

#define ALSA_PCM_NEW_HW_PARAMS_API
 
#define ALSA_PCM_NEW_SW_PARAMS_API
 
#define id_snd_pcm_hw_params_alloca(ptr)   do { assert(ptr); *ptr = (snd_pcm_hw_params_t *) alloca(id_snd_pcm_hw_params_sizeof()); memset(*ptr, 0, id_snd_pcm_hw_params_sizeof()); } while (0)
 
#define ALSA_DLSYM(SYM)   id_##SYM = ( pfn_##SYM )dlvsym( m_handle, #SYM, "ALSA_0.9" ); if ( !id_##SYM ) { common->Printf( "dlsym "#SYM" failed: %s\n", dlerror() ); Release(); return false; }
 

Typedefs

typedef const char *(* pfn_snd_asoundlib_version )(void)
 
typedef snd_pcm_sframes_t(* pfn_snd_pcm_avail_update )(snd_pcm_t *pcm)
 
typedef int(* pfn_snd_pcm_close )(snd_pcm_t *pcm)
 
typedef const char *(* pfn_snd_strerror )(int errnum)
 
typedef int(* pfn_snd_pcm_hw_params )(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
 
typedef int(* pfn_snd_pcm_hw_params_any )(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
 
typedef int(* pfn_snd_pcm_hw_params_get_buffer_size )(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 
typedef int(* pfn_snd_pcm_hw_params_set_access )(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t access)
 
typedef int(* pfn_snd_pcm_hw_params_set_buffer_size_min )(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)
 
typedef int(* pfn_snd_pcm_hw_params_set_channels )(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)
 
typedef int(* pfn_snd_pcm_hw_params_set_format )(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t format)
 
typedef int(* pfn_snd_pcm_hw_params_set_rate )(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)
 
typedef size_t(* pfn_snd_pcm_hw_params_sizeof )(void)
 
typedef int(* pfn_snd_pcm_open )(snd_pcm_t **pcmp, const char *name, snd_pcm_stream_t stream, int mode)
 
typedef int(* pfn_snd_pcm_prepare )(snd_pcm_t *pcm)
 
typedef snd_pcm_state_t(* pfn_snd_pcm_state )(snd_pcm_t *pcm)
 
typedef snd_pcm_sframes_t(* pfn_snd_pcm_writei )(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size)
 

Macro Definition Documentation

#define ALSA_DLSYM (   SYM)    id_##SYM = ( pfn_##SYM )dlvsym( m_handle, #SYM, "ALSA_0.9" ); if ( !id_##SYM ) { common->Printf( "dlsym "#SYM" failed: %s\n", dlerror() ); Release(); return false; }

Definition at line 112 of file sound.h.

#define ALSA_PCM_NEW_HW_PARAMS_API

Definition at line 88 of file sound.h.

#define ALSA_PCM_NEW_SW_PARAMS_API

Definition at line 89 of file sound.h.

#define id_snd_pcm_hw_params_alloca (   ptr)    do { assert(ptr); *ptr = (snd_pcm_hw_params_t *) alloca(id_snd_pcm_hw_params_sizeof()); memset(*ptr, 0, id_snd_pcm_hw_params_sizeof()); } while (0)

Definition at line 92 of file sound.h.

Typedef Documentation

typedef const char*( * pfn_snd_asoundlib_version)(void)

Definition at line 94 of file sound.h.

typedef snd_pcm_sframes_t( * pfn_snd_pcm_avail_update)(snd_pcm_t *pcm)

Definition at line 95 of file sound.h.

typedef int( * pfn_snd_pcm_close)(snd_pcm_t *pcm)

Definition at line 96 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)

Definition at line 98 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params_any)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)

Definition at line 99 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params_get_buffer_size)(const snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)

Definition at line 100 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params_set_access)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_access_t access)

Definition at line 101 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params_set_buffer_size_min)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_uframes_t *val)

Definition at line 102 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params_set_channels)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val)

Definition at line 103 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params_set_format)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, snd_pcm_format_t format)

Definition at line 104 of file sound.h.

typedef int( * pfn_snd_pcm_hw_params_set_rate)(snd_pcm_t *pcm, snd_pcm_hw_params_t *params, unsigned int val, int dir)

Definition at line 105 of file sound.h.

typedef size_t( * pfn_snd_pcm_hw_params_sizeof)(void)

Definition at line 106 of file sound.h.

typedef int( * pfn_snd_pcm_open)(snd_pcm_t **pcmp, const char *name, snd_pcm_stream_t stream, int mode)

Definition at line 107 of file sound.h.

typedef int( * pfn_snd_pcm_prepare)(snd_pcm_t *pcm)

Definition at line 108 of file sound.h.

typedef snd_pcm_state_t( * pfn_snd_pcm_state)(snd_pcm_t *pcm)

Definition at line 109 of file sound.h.

typedef snd_pcm_sframes_t( * pfn_snd_pcm_writei)(snd_pcm_t *pcm, const void *buffer, snd_pcm_uframes_t size)

Definition at line 110 of file sound.h.

typedef const char*( * pfn_snd_strerror)(int errnum)

Definition at line 97 of file sound.h.