mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Fixed some typos for timer interface.
This commit is contained in:
parent
c584d6ce62
commit
4e92e7a28c
3 changed files with 9 additions and 5 deletions
|
|
@ -25,7 +25,10 @@ typedef struct _snd_timer_params snd_timer_params_t;
|
||||||
/** timer status structure */
|
/** timer status structure */
|
||||||
typedef struct _snd_timer_status snd_timer_status_t;
|
typedef struct _snd_timer_status snd_timer_status_t;
|
||||||
/** timer read structure */
|
/** timer read structure */
|
||||||
typedef struct sndrv_timer_read snd_timer_read_t;
|
typedef struct _snd_timer_read {
|
||||||
|
unsigned int resolution; /**< tick resolution in nanoseconds */
|
||||||
|
unsigned int ticks; /**< count of happened ticks */
|
||||||
|
} snd_timer_read_t;
|
||||||
|
|
||||||
/** timer master class */
|
/** timer master class */
|
||||||
typedef enum _snd_timer_class {
|
typedef enum _snd_timer_class {
|
||||||
|
|
@ -69,6 +72,7 @@ typedef struct _snd_timer_query snd_timer_query_t;
|
||||||
/** timer handle */
|
/** timer handle */
|
||||||
typedef struct _snd_timer snd_timer_t;
|
typedef struct _snd_timer snd_timer_t;
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -130,7 +134,7 @@ void snd_timer_params_copy(snd_timer_params_t *dst, const snd_timer_params_t *sr
|
||||||
|
|
||||||
void snd_timer_params_set_auto_start(snd_timer_params_t * params, int auto_start);
|
void snd_timer_params_set_auto_start(snd_timer_params_t * params, int auto_start);
|
||||||
void snd_timer_params_set_ticks(snd_timer_params_t * params, long ticks);
|
void snd_timer_params_set_ticks(snd_timer_params_t * params, long ticks);
|
||||||
int snd_timer_params_get_ticks(snd_timer_params_t * params);
|
long snd_timer_params_get_ticks(snd_timer_params_t * params);
|
||||||
void snd_timer_params_set_queue_size(snd_timer_params_t * params, long queue_size);
|
void snd_timer_params_set_queue_size(snd_timer_params_t * params, long queue_size);
|
||||||
long snd_timer_params_get_queue_size(snd_timer_params_t * params);
|
long snd_timer_params_get_queue_size(snd_timer_params_t * params);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -486,7 +486,7 @@ void snd_timer_params_set_ticks(snd_timer_params_t * params, long ticks)
|
||||||
* \param params pointer to #snd_timer_params_t structure
|
* \param params pointer to #snd_timer_params_t structure
|
||||||
* \return timer ticks
|
* \return timer ticks
|
||||||
*/
|
*/
|
||||||
int snd_timer_params_get_ticks(snd_timer_params_t * params)
|
long snd_timer_params_get_ticks(snd_timer_params_t * params)
|
||||||
{
|
{
|
||||||
assert(params);
|
assert(params);
|
||||||
return params->ticks;
|
return params->ticks;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ static int snd_timer_query_open_conf(snd_timer_query_t **timer,
|
||||||
const char *str;
|
const char *str;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
int err;
|
int err;
|
||||||
snd_config_t *conf, *type_conf;
|
snd_config_t *conf, *type_conf = NULL;
|
||||||
snd_config_iterator_t i, next;
|
snd_config_iterator_t i, next;
|
||||||
const char *lib = NULL, *open_name = NULL;
|
const char *lib = NULL, *open_name = NULL;
|
||||||
int (*open_func)(snd_timer_query_t **, const char *, snd_config_t *, snd_config_t *, int) = NULL;
|
int (*open_func)(snd_timer_query_t **, const char *, snd_config_t *, snd_config_t *, int) = NULL;
|
||||||
|
|
@ -130,7 +130,7 @@ static int snd_timer_query_open_noupdate(snd_timer_query_t **timer, snd_config_t
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
snd_config_t *timer_conf;
|
snd_config_t *timer_conf;
|
||||||
err = snd_config_search_definition(root, "timer", name, &timer_conf);
|
err = snd_config_search_definition(root, "timer_query", name, &timer_conf);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
SNDERR("Unknown timer %s", name);
|
SNDERR("Unknown timer %s", name);
|
||||||
return err;
|
return err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue