Added snd_pcm_sw_params_get_boundary() function.

Implemented refine function in dmix.
This commit is contained in:
Jaroslav Kysela 2003-02-05 21:26:14 +00:00
parent 073dff1ba1
commit 7c5e5f5728
3 changed files with 41 additions and 21 deletions

View file

@ -1700,7 +1700,7 @@ static int snd_pcm_open_conf(snd_pcm_t **pcmp, const char *name,
#ifndef PIC
extern void *snd_pcm_open_symbols(void);
#endif
void *h;
void *h = NULL;
if (snd_config_get_type(pcm_conf) != SND_CONFIG_TYPE_COMPOUND) {
char *val;
id = NULL;
@ -4988,25 +4988,7 @@ void snd_pcm_sw_params_copy(snd_pcm_sw_params_t *dst, const snd_pcm_sw_params_t
*dst = *src;
}
/**
* \brief Set boundary for ring pointers inside a software configuration container
* \param pcm PCM handle
* \param params Software configuration container
* \param val boundary in frames
* \return 0 otherwise a negative error code
*/
#ifndef DOXYGEN
int snd_pcm_sw_params_set_boundary(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
#else
int snd_pcm_sw_params_set_boundary(snd_pcm_t *pcm, snd_pcm_sw_params_t *params, snd_pcm_uframes_t val)
#endif
{
assert(pcm && params);
params->boundary = val;
return 0;
}
/**
/*
* \brief Get boundary for ring pointers from a software configuration container
* \param params Software configuration container
* \param val Returned boundary in frames