19 #ifndef _ZITA_ALSA_PCMI_H_
20 #define _ZITA_ALSA_PCMI_H_
22 #define ALSA_PCM_NEW_HW_PARAMS_API
23 #define ALSA_PCM_NEW_SW_PARAMS_API
25 #include <alsa/asoundlib.h>
32 const char* play_name,
33 const char* capt_name,
34 const char* ctrl_name,
37 unsigned int play_nfrags,
38 unsigned int capt_nfrags,
39 unsigned int debug = 0);
64 void play_chan (
int chan,
const float* src,
int len,
int step = 1);
68 void capt_chan (
int chan,
float* dst,
int len,
int step = 1);
119 void initialise (
const char* play_name,
const char* capt_name,
const char* ctrl_name);
120 int set_hwpar (snd_pcm_t* handle, snd_pcm_hw_params_t* hwpar,
const char* sname,
unsigned int nfrag,
unsigned int* nchan);
121 int set_swpar (snd_pcm_t* handle, snd_pcm_sw_params_t* swpar,
const char* sname);
131 char*
play_32le (
const float* src,
char* dst,
int nfrm,
int step);
132 char*
play_24le (
const float* src,
char* dst,
int nfrm,
int step);
133 char*
play_16le (
const float* src,
char* dst,
int nfrm,
int step);
134 char*
play_32be (
const float* src,
char* dst,
int nfrm,
int step);
135 char*
play_24be (
const float* src,
char* dst,
int nfrm,
int step);
136 char*
play_16be (
const float* src,
char* dst,
int nfrm,
int step);
138 const char*
capt_floatne (
const char* src,
float* dst,
int nfrm,
int step);
139 const char*
capt_floatre (
const char* src,
float* dst,
int nfrm,
int step);
140 const char*
capt_32le (
const char* src,
float* dst,
int nfrm,
int step);
141 const char*
capt_24le (
const char* src,
float* dst,
int nfrm,
int step);
142 const char*
capt_16le (
const char* src,
float* dst,
int nfrm,
int step);
143 const char*
capt_32be (
const char* src,
float* dst,
int nfrm,
int step);
144 const char*
capt_24be (
const char* src,
float* dst,
int nfrm,
int step);
145 const char*
capt_16be (
const char* src,
float* dst,
int nfrm,
int step);
const char * capt_24le(const char *src, float *dst, int nfrm, int step)
char * play_24be(const float *src, char *dst, int nfrm, int step)
snd_pcm_access_t _play_access
const char * capt_floatre(const char *src, float *dst, int nfrm, int step)
char * play_32le(const float *src, char *dst, int nfrm, int step)
void initialise(const char *play_name, const char *capt_name, const char *ctrl_name)
snd_pcm_sframes_t pcm_wait(void)
const char * capt_24be(const char *src, float *dst, int nfrm, int step)
snd_pcm_sw_params_t * _play_swpar
snd_pcm_uframes_t _play_offs
snd_pcm_t * capt_handle(void) const
int set_hwpar(snd_pcm_t *handle, snd_pcm_hw_params_t *hwpar, const char *sname, unsigned int nfrag, unsigned int *nchan)
const char * capt_32be(const char *src, float *dst, int nfrm, int step)
char *(Alsa_pcmi::* play_function)(const float *, char *, int, int)
int set_swpar(snd_pcm_t *handle, snd_pcm_sw_params_t *swpar, const char *sname)
const char * _capt_ptr[MAXCHAN]
char * play_floatne(const float *src, char *dst, int nfrm, int step)
int capt_init(snd_pcm_uframes_t len)
float xruncheck(snd_pcm_status_t *stat)
snd_pcm_hw_params_t * _play_hwpar
char * _play_ptr[MAXCHAN]
const char * capt_32le(const char *src, float *dst, int nfrm, int step)
char *(Alsa_pcmi::* clear_function)(char *, int)
uint32_t nplay(void) const
const char * capt_floatne(const char *src, float *dst, int nfrm, int step)
snd_pcm_format_t _play_format
snd_pcm_format_t _capt_format
clear_function _clear_func
float play_xrun(void) const
char * play_16be(const float *src, char *dst, int nfrm, int step)
struct pollfd _poll_fd[MAXPFD]
uint32_t play_nfrag(void) const
char * play_floatre(const float *src, char *dst, int nfrm, int step)
char * clear_32(char *dst, int nfrm)
char * clear_24(char *dst, int nfrm)
void clear_chan(int chan, int len)
uint32_t ncapt(void) const
char * clear_16(char *dst, int nfrm)
const char * capt_16le(const char *src, float *dst, int nfrm, int step)
const char *(Alsa_pcmi::* capt_function)(const char *, float *, int, int)
const char * capt_16be(const char *src, float *dst, int nfrm, int step)
snd_pcm_uframes_t _capt_offs
snd_pcm_sw_params_t * _capt_swpar
char * play_24le(const float *src, char *dst, int nfrm, int step)
void capt_chan(int chan, float *dst, int len, int step=1)
snd_pcm_access_t _capt_access
uint32_t fsamp(void) const
float capt_xrun(void) const
int play_init(snd_pcm_uframes_t len)
snd_pcm_hw_params_t * _capt_hwpar
snd_pcm_t * play_handle(void) const
char * play_32be(const float *src, char *dst, int nfrm, int step)
Alsa_pcmi(const char *play_name, const char *capt_name, const char *ctrl_name, unsigned int rate, unsigned int frsize, unsigned int play_nfrags, unsigned int capt_nfrags, unsigned int debug=0)
void play_chan(int chan, const float *src, int len, int step=1)
uint32_t capt_nfrag(void) const
char * play_16le(const float *src, char *dst, int nfrm, int step)