summaryrefslogtreecommitdiff
path: root/include/timer.h
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2001-08-28 13:41:03 +0000
committerJaroslav Kysela <perex@perex.cz>2001-08-28 13:41:03 +0000
commit4e92e7a28c16d0a38fc11dd18ed063a7c1a23daa (patch)
tree2b626063f5b7937defbbb59f3cc4a29c624d379a /include/timer.h
parentc584d6ce6262b9d7530a85b1637c50d11caab76c (diff)
Fixed some typos for timer interface.
Diffstat (limited to 'include/timer.h')
-rw-r--r--include/timer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/timer.h b/include/timer.h
index ba28d44b..258deeb2 100644
--- a/include/timer.h
+++ b/include/timer.h
@@ -25,7 +25,10 @@ typedef struct _snd_timer_params snd_timer_params_t;
/** timer status structure */
typedef struct _snd_timer_status snd_timer_status_t;
/** 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 */
typedef enum _snd_timer_class {
@@ -69,6 +72,7 @@ typedef struct _snd_timer_query snd_timer_query_t;
/** timer handle */
typedef struct _snd_timer snd_timer_t;
+
#ifdef __cplusplus
extern "C" {
#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_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);
long snd_timer_params_get_queue_size(snd_timer_params_t * params);