All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
timer.h
Go to the documentation of this file.
/*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef __ALSA_TIMER_H
#define __ALSA_TIMER_H
#ifdef __cplusplus
extern "C" {
#endif
#define SND_TIMER_DLSYM_VERSION _dlsym_timer_001
#define SND_TIMER_QUERY_DLSYM_VERSION _dlsym_timer_query_001
typedef struct _snd_timer_id snd_timer_id_t;
typedef struct _snd_timer_ginfo snd_timer_ginfo_t;
typedef struct _snd_timer_gparams snd_timer_gparams_t;
typedef struct _snd_timer_gstatus snd_timer_gstatus_t;
typedef struct _snd_timer_info snd_timer_info_t;
typedef struct _snd_timer_params snd_timer_params_t;
typedef struct _snd_timer_status snd_timer_status_t;
typedef enum _snd_timer_class {
SND_TIMER_CLASS_NONE = -1,
SND_TIMER_CLASS_SLAVE = 0,
SND_TIMER_CLASS_GLOBAL,
SND_TIMER_CLASS_CARD,
SND_TIMER_CLASS_PCM,
SND_TIMER_CLASS_LAST = SND_TIMER_CLASS_PCM
} snd_timer_class_t;
typedef enum _snd_timer_slave_class {
SND_TIMER_SCLASS_NONE = 0,
SND_TIMER_SCLASS_APPLICATION,
SND_TIMER_SCLASS_SEQUENCER,
SND_TIMER_SCLASS_OSS_SEQUENCER,
SND_TIMER_SCLASS_LAST = SND_TIMER_SCLASS_OSS_SEQUENCER
} snd_timer_slave_class_t;
typedef enum _snd_timer_event {
SND_TIMER_EVENT_RESOLUTION = 0, /* val = resolution in ns */
SND_TIMER_EVENT_TICK, /* val = ticks */
SND_TIMER_EVENT_START, /* val = resolution in ns */
SND_TIMER_EVENT_STOP, /* val = 0 */
SND_TIMER_EVENT_CONTINUE, /* val = resolution in ns */
SND_TIMER_EVENT_PAUSE, /* val = 0 */
SND_TIMER_EVENT_EARLY, /* val = 0 */
SND_TIMER_EVENT_SUSPEND, /* val = 0 */
SND_TIMER_EVENT_RESUME, /* val = resolution in ns */
/* master timer events for slave timer instances */
SND_TIMER_EVENT_MSTART = SND_TIMER_EVENT_START + 10,
SND_TIMER_EVENT_MSTOP = SND_TIMER_EVENT_STOP + 10,
SND_TIMER_EVENT_MCONTINUE = SND_TIMER_EVENT_CONTINUE + 10,
SND_TIMER_EVENT_MPAUSE = SND_TIMER_EVENT_PAUSE + 10,
SND_TIMER_EVENT_MSUSPEND = SND_TIMER_EVENT_SUSPEND + 10,
SND_TIMER_EVENT_MRESUME = SND_TIMER_EVENT_RESUME + 10
} snd_timer_event_t;
typedef struct _snd_timer_read {
unsigned int resolution;
unsigned int ticks;
} snd_timer_read_t;
typedef struct _snd_timer_tread {
snd_timer_event_t event;
snd_htimestamp_t tstamp;
unsigned int val;
} snd_timer_tread_t;
#define SND_TIMER_GLOBAL_SYSTEM 0
#define SND_TIMER_GLOBAL_RTC 1 /* Obsoleted, due to enough legacy. */
#define SND_TIMER_GLOBAL_HPET 2
#define SND_TIMER_GLOBAL_HRTIMER 3
#define SND_TIMER_OPEN_NONBLOCK (1<<0)
#define SND_TIMER_OPEN_TREAD (1<<1)
typedef enum _snd_timer_type {
SND_TIMER_TYPE_HW = 0,
SND_TIMER_TYPE_SHM,
SND_TIMER_TYPE_INET
} snd_timer_type_t;
typedef struct _snd_timer_query snd_timer_query_t;
typedef struct _snd_timer snd_timer_t;
int snd_timer_query_open(snd_timer_query_t **handle, const char *name, int mode);
int snd_timer_query_open_lconf(snd_timer_query_t **handle, const char *name, int mode, snd_config_t *lconf);
int snd_timer_query_close(snd_timer_query_t *handle);
int snd_timer_query_next_device(snd_timer_query_t *handle, snd_timer_id_t *tid);
int snd_timer_query_info(snd_timer_query_t *handle, snd_timer_ginfo_t *info);
int snd_timer_query_params(snd_timer_query_t *handle, snd_timer_gparams_t *params);
int snd_timer_query_status(snd_timer_query_t *handle, snd_timer_gstatus_t *status);
int snd_timer_open(snd_timer_t **handle, const char *name, int mode);
int snd_timer_open_lconf(snd_timer_t **handle, const char *name, int mode, snd_config_t *lconf);
int snd_timer_close(snd_timer_t *handle);
int snd_async_add_timer_handler(snd_async_handler_t **handler, snd_timer_t *timer,
snd_async_callback_t callback, void *private_data);
snd_timer_t *snd_async_handler_get_timer(snd_async_handler_t *handler);
int snd_timer_poll_descriptors_count(snd_timer_t *handle);
int snd_timer_poll_descriptors(snd_timer_t *handle, struct pollfd *pfds, unsigned int space);
int snd_timer_poll_descriptors_revents(snd_timer_t *timer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
int snd_timer_info(snd_timer_t *handle, snd_timer_info_t *timer);
int snd_timer_params(snd_timer_t *handle, snd_timer_params_t *params);
int snd_timer_status(snd_timer_t *handle, snd_timer_status_t *status);
int snd_timer_start(snd_timer_t *handle);
int snd_timer_stop(snd_timer_t *handle);
int snd_timer_continue(snd_timer_t *handle);
ssize_t snd_timer_read(snd_timer_t *handle, void *buffer, size_t size);
size_t snd_timer_id_sizeof(void);
#define snd_timer_id_alloca(ptr) __snd_alloca(ptr, snd_timer_id)
int snd_timer_id_malloc(snd_timer_id_t **ptr);
void snd_timer_id_free(snd_timer_id_t *obj);
void snd_timer_id_copy(snd_timer_id_t *dst, const snd_timer_id_t *src);
void snd_timer_id_set_class(snd_timer_id_t *id, int dev_class);
int snd_timer_id_get_class(snd_timer_id_t *id);
void snd_timer_id_set_sclass(snd_timer_id_t *id, int dev_sclass);
int snd_timer_id_get_sclass(snd_timer_id_t *id);
void snd_timer_id_set_card(snd_timer_id_t *id, int card);
int snd_timer_id_get_card(snd_timer_id_t *id);
void snd_timer_id_set_device(snd_timer_id_t *id, int device);
int snd_timer_id_get_device(snd_timer_id_t *id);
void snd_timer_id_set_subdevice(snd_timer_id_t *id, int subdevice);
int snd_timer_id_get_subdevice(snd_timer_id_t *id);
size_t snd_timer_ginfo_sizeof(void);
#define snd_timer_ginfo_alloca(ptr) __snd_alloca(ptr, snd_timer_ginfo)
int snd_timer_ginfo_malloc(snd_timer_ginfo_t **ptr);
void snd_timer_ginfo_free(snd_timer_ginfo_t *obj);
void snd_timer_ginfo_copy(snd_timer_ginfo_t *dst, const snd_timer_ginfo_t *src);
int snd_timer_ginfo_set_tid(snd_timer_ginfo_t *obj, snd_timer_id_t *tid);
snd_timer_id_t *snd_timer_ginfo_get_tid(snd_timer_ginfo_t *obj);
unsigned int snd_timer_ginfo_get_flags(snd_timer_ginfo_t *obj);
int snd_timer_ginfo_get_card(snd_timer_ginfo_t *obj);
char *snd_timer_ginfo_get_id(snd_timer_ginfo_t *obj);
char *snd_timer_ginfo_get_name(snd_timer_ginfo_t *obj);
unsigned long snd_timer_ginfo_get_resolution(snd_timer_ginfo_t *obj);
unsigned long snd_timer_ginfo_get_resolution_min(snd_timer_ginfo_t *obj);
unsigned long snd_timer_ginfo_get_resolution_max(snd_timer_ginfo_t *obj);
unsigned int snd_timer_ginfo_get_clients(snd_timer_ginfo_t *obj);
size_t snd_timer_info_sizeof(void);
#define snd_timer_info_alloca(ptr) __snd_alloca(ptr, snd_timer_info)
int snd_timer_info_malloc(snd_timer_info_t **ptr);
void snd_timer_info_free(snd_timer_info_t *obj);
void snd_timer_info_copy(snd_timer_info_t *dst, const snd_timer_info_t *src);
int snd_timer_info_is_slave(snd_timer_info_t * info);
int snd_timer_info_get_card(snd_timer_info_t * info);
const char *snd_timer_info_get_id(snd_timer_info_t * info);
const char *snd_timer_info_get_name(snd_timer_info_t * info);
long snd_timer_info_get_resolution(snd_timer_info_t * info);
size_t snd_timer_params_sizeof(void);
#define snd_timer_params_alloca(ptr) __snd_alloca(ptr, snd_timer_params)
int snd_timer_params_malloc(snd_timer_params_t **ptr);
void snd_timer_params_free(snd_timer_params_t *obj);
void snd_timer_params_copy(snd_timer_params_t *dst, const snd_timer_params_t *src);
int snd_timer_params_set_auto_start(snd_timer_params_t * params, int auto_start);
int snd_timer_params_get_auto_start(snd_timer_params_t * params);
int snd_timer_params_set_exclusive(snd_timer_params_t * params, int exclusive);
int snd_timer_params_get_exclusive(snd_timer_params_t * params);
int snd_timer_params_set_early_event(snd_timer_params_t * params, int early_event);
int snd_timer_params_get_early_event(snd_timer_params_t * params);
void snd_timer_params_set_ticks(snd_timer_params_t * params, long ticks);
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);
void snd_timer_params_set_filter(snd_timer_params_t * params, unsigned int filter);
unsigned int snd_timer_params_get_filter(snd_timer_params_t * params);
size_t snd_timer_status_sizeof(void);
#define snd_timer_status_alloca(ptr) __snd_alloca(ptr, snd_timer_status)
int snd_timer_status_malloc(snd_timer_status_t **ptr);
void snd_timer_status_free(snd_timer_status_t *obj);
void snd_timer_status_copy(snd_timer_status_t *dst, const snd_timer_status_t *src);
snd_htimestamp_t snd_timer_status_get_timestamp(snd_timer_status_t * status);
long snd_timer_status_get_resolution(snd_timer_status_t * status);
long snd_timer_status_get_lost(snd_timer_status_t * status);
long snd_timer_status_get_overrun(snd_timer_status_t * status);
long snd_timer_status_get_queue(snd_timer_status_t * status);
/* deprecated functions, for compatibility */
long snd_timer_info_get_ticks(snd_timer_info_t * info);
#ifdef __cplusplus
}
#endif
#endif
snd_timer_id_copy
void snd_timer_id_copy(snd_timer_id_t *dst, const snd_timer_id_t *src)
copy one snd_timer_id_t structure to another
Definition: timer_query.c:478
snd_timer_ginfo_t
struct _snd_timer_ginfo snd_timer_ginfo_t
Definition: timer.h:49
snd_timer_tread_t::val
unsigned int val
Definition: timer.h:109
snd_timer_status_get_timestamp
snd_htimestamp_t snd_timer_status_get_timestamp(snd_timer_status_t *status)
get timestamp
Definition: timer.c:836
snd_timer_query_next_device
int snd_timer_query_next_device(snd_timer_query_t *handle, snd_timer_id_t *tid)
obtain the next timer identification
Definition: timer_query.c:221
SND_TIMER_SCLASS_LAST
Definition: timer.h:76
snd_timer_gstatus_t
struct _snd_timer_gstatus snd_timer_gstatus_t
Definition: timer.h:53
snd_timer_id_t
struct _snd_timer_id snd_timer_id_t
Definition: timer.h:47
SND_TIMER_SCLASS_APPLICATION
Definition: timer.h:73
snd_timer_read_t
Definition: timer.h:100
snd_timer_id_get_sclass
int snd_timer_id_get_sclass(snd_timer_id_t *id)
get timer sub-class
Definition: timer_query.c:522
snd_async_handler_get_timer
snd_timer_t * snd_async_handler_get_timer(snd_async_handler_t *handler)
Return timer handle related to an async handler.
Definition: timer.c:325
snd_timer_close
int snd_timer_close(snd_timer_t *handle)
close timer handle
Definition: timer.c:242
snd_timer_event_t
snd_timer_event_t
Definition: timer.h:80
snd_timer_params_get_ticks
long snd_timer_params_get_ticks(snd_timer_params_t *params)
get timer ticks
Definition: timer.c:706
snd_timer_params_sizeof
size_t snd_timer_params_sizeof(void)
get size of the snd_timer_params_t structure in bytes
Definition: timer.c:556
snd_async_callback_t
void(* snd_async_callback_t)(snd_async_handler_t *handler)
Async notification callback.
Definition: global.h:121
snd_timer_status_get_lost
long snd_timer_status_get_lost(snd_timer_status_t *status)
get master tick lost count
Definition: timer.c:858
snd_timer_status_copy
void snd_timer_status_copy(snd_timer_status_t *dst, const snd_timer_status_t *src)
copy one snd_timer_status_t structure to another
Definition: timer.c:823
SND_TIMER_CLASS_PCM
Definition: timer.h:66
snd_timer_read
ssize_t snd_timer_read(snd_timer_t *handle, void *buffer, size_t size)
read bytes using timer handle
Definition: timer.c:938
snd_timer_status
int snd_timer_status(snd_timer_t *handle, snd_timer_status_t *status)
get status from timer handle
Definition: timer.c:892
snd_timer_info_sizeof
size_t snd_timer_info_sizeof(void)
get size of the snd_timer_info_t structure in bytes
Definition: timer.c:437
snd_timer_info_get_resolution
long snd_timer_info_get_resolution(snd_timer_info_t *info)
get timer resolution in us
Definition: timer.c:533
snd_timer_query_t
struct _snd_timer_query snd_timer_query_t
Definition: timer.h:137
snd_timer_open
int snd_timer_open(snd_timer_t **handle, const char *name, int mode)
Opens a new connection to the timer interface.
Definition: timer.c:202
snd_timer_poll_descriptors
int snd_timer_poll_descriptors(snd_timer_t *handle, struct pollfd *pfds, unsigned int space)
get poll descriptors
Definition: timer.c:352
snd_timer_info_get_name
const char * snd_timer_info_get_name(snd_timer_info_t *info)
get timer name
Definition: timer.c:521
SND_TIMER_TYPE_HW
Definition: timer.h:129
snd_timer_open_lconf
int snd_timer_open_lconf(snd_timer_t **handle, const char *name, int mode, snd_config_t *lconf)
Opens a new connection to the timer interface using local configuration.
Definition: timer.c:227
snd_timer_info_malloc
int snd_timer_info_malloc(snd_timer_info_t **ptr)
allocate a new snd_timer_info_t structure
Definition: timer.c:450
snd_timer_params_set_exclusive
int snd_timer_params_set_exclusive(snd_timer_params_t *params, int exclusive)
set timer exclusive use
Definition: timer.c:636
snd_timer_query_status
int snd_timer_query_status(snd_timer_query_t *handle, snd_timer_gstatus_t *status)
get the timer global status
Definition: timer_query.c:425
snd_timer_params_t
struct _snd_timer_params snd_timer_params_t
Definition: timer.h:57
snd_timer_params_set_queue_size
void snd_timer_params_set_queue_size(snd_timer_params_t *params, long queue_size)
set timer queue size (32-1024)
Definition: timer.c:717
snd_timer_ginfo_get_id
char * snd_timer_ginfo_get_id(snd_timer_ginfo_t *obj)
get timer identification
Definition: timer_query.c:325
snd_timer_tread_t::event
snd_timer_event_t event
Definition: timer.h:107
SND_TIMER_CLASS_LAST
Definition: timer.h:67
snd_timer_t
struct _snd_timer snd_timer_t
Definition: timer.h:139
SND_TIMER_TYPE_INET
Definition: timer.h:133
snd_timer_ginfo_copy
void snd_timer_ginfo_copy(snd_timer_ginfo_t *dst, const snd_timer_ginfo_t *src)
copy one snd_timer_info_t structure to another
Definition: timer_query.c:272
snd_timer_ginfo_get_resolution_min
unsigned long snd_timer_ginfo_get_resolution_min(snd_timer_ginfo_t *obj)
get timer minimal resolution in ns
Definition: timer_query.c:355
snd_timer_info_is_slave
int snd_timer_info_is_slave(snd_timer_info_t *info)
determine, if timer is slave
Definition: timer.c:488
snd_timer_read_t::ticks
unsigned int ticks
Definition: timer.h:102
snd_timer_status_t
struct _snd_timer_status snd_timer_status_t
Definition: timer.h:59
snd_timer_params_set_auto_start
int snd_timer_params_set_auto_start(snd_timer_params_t *params, int auto_start)
set timer auto start
Definition: timer.c:607
snd_timer_poll_descriptors_revents
int snd_timer_poll_descriptors_revents(snd_timer_t *timer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
get returned events from poll descriptors
Definition: timer.c:383
snd_timer_status_sizeof
size_t snd_timer_status_sizeof(void)
get size of the snd_timer_status_t structure in bytes
Definition: timer.c:783
snd_timer_status_get_resolution
long snd_timer_status_get_resolution(snd_timer_status_t *status)
get resolution in us
Definition: timer.c:847
snd_timer_params_malloc
int snd_timer_params_malloc(snd_timer_params_t **ptr)
allocate a new snd_timer_params_t structure
Definition: timer.c:569
snd_htimestamp_t
struct timespec snd_htimestamp_t
Definition: global.h:153
SND_TIMER_TYPE_SHM
Definition: timer.h:131
snd_timer_stop
int snd_timer_stop(snd_timer_t *handle)
stop the timer
Definition: timer.c:915
snd_timer_query_params
int snd_timer_query_params(snd_timer_query_t *handle, snd_timer_gparams_t *params)
set the timer global parameters
Definition: timer_query.c:407
snd_timer_gparams_t
struct _snd_timer_gparams snd_timer_gparams_t
Definition: timer.h:51
snd_timer_params_get_early_event
int snd_timer_params_get_early_event(snd_timer_params_t *params)
determine if timer has early event flag
Definition: timer.c:684
snd_timer_status_get_overrun
long snd_timer_status_get_overrun(snd_timer_status_t *status)
get overrun count
Definition: timer.c:869
snd_timer_info_free
void snd_timer_info_free(snd_timer_info_t *obj)
frees the snd_timer_info_t structure
Definition: timer.c:466
snd_timer_params_set_early_event
int snd_timer_params_set_early_event(snd_timer_params_t *params, int early_event)
set timer early event
Definition: timer.c:669
snd_timer_params_get_filter
unsigned int snd_timer_params_get_filter(snd_timer_params_t *params)
get timer event filter
Definition: timer.c:758
snd_timer_id_free
void snd_timer_id_free(snd_timer_id_t *obj)
frees the snd_timer_id_t structure
Definition: timer_query.c:467
snd_timer_info_copy
void snd_timer_info_copy(snd_timer_info_t *dst, const snd_timer_info_t *src)
copy one snd_timer_info_t structure to another
Definition: timer.c:477
snd_timer_slave_class_t
snd_timer_slave_class_t
Definition: timer.h:71
SND_TIMER_SCLASS_NONE
Definition: timer.h:72
snd_timer_ginfo_set_tid
int snd_timer_ginfo_set_tid(snd_timer_ginfo_t *obj, snd_timer_id_t *tid)
set timer identification
Definition: timer_query.c:284
snd_timer_read_t::resolution
unsigned int resolution
Definition: timer.h:101
snd_timer_ginfo_get_card
int snd_timer_ginfo_get_card(snd_timer_ginfo_t *obj)
get associated card with timer
Definition: timer_query.c:315
SND_TIMER_CLASS_GLOBAL
Definition: timer.h:64
snd_timer_params_free
void snd_timer_params_free(snd_timer_params_t *obj)
frees the snd_timer_params_t structure
Definition: timer.c:585
snd_timer_id_get_device
int snd_timer_id_get_device(snd_timer_id_t *id)
get timer device
Definition: timer_query.c:566
snd_timer_id_get_subdevice
int snd_timer_id_get_subdevice(snd_timer_id_t *id)
get timer subdevice
Definition: timer_query.c:588
SND_TIMER_SCLASS_OSS_SEQUENCER
Definition: timer.h:75
snd_timer_status_malloc
int snd_timer_status_malloc(snd_timer_status_t **ptr)
allocate a new snd_timer_status_t structure
Definition: timer.c:796
snd_timer_id_get_class
int snd_timer_id_get_class(snd_timer_id_t *id)
get timer class
Definition: timer_query.c:500
snd_timer_id_malloc
int snd_timer_id_malloc(snd_timer_id_t **ptr)
allocate a new snd_timer_id_t structure
Definition: timer_query.c:451
snd_timer_id_sizeof
size_t snd_timer_id_sizeof(void)
get size of the snd_timer_id_t structure in bytes
Definition: timer_query.c:438
snd_timer_query_open_lconf
int snd_timer_query_open_lconf(snd_timer_query_t **handle, const char *name, int mode, snd_config_t *lconf)
Opens a new connection to the timer query interface using local configuration.
Definition: timer_query.c:185
snd_async_handler_t
struct _snd_async_handler snd_async_handler_t
Internal structure for an async notification client handler.
Definition: global.h:114
SND_TIMER_CLASS_SLAVE
Definition: timer.h:63
snd_timer_params_set_filter
void snd_timer_params_set_filter(snd_timer_params_t *params, unsigned int filter)
set timer event filter
Definition: timer.c:742
snd_timer_poll_descriptors_count
int snd_timer_poll_descriptors_count(snd_timer_t *handle)
get count of poll descriptors for timer handle
Definition: timer.c:339
snd_timer_params_set_ticks
void snd_timer_params_set_ticks(snd_timer_params_t *params, long ticks)
set timer ticks
Definition: timer.c:695
snd_timer_id_set_class
void snd_timer_id_set_class(snd_timer_id_t *id, int dev_class)
set timer class
Definition: timer_query.c:489
snd_timer_status_get_queue
long snd_timer_status_get_queue(snd_timer_status_t *status)
get count of used queue elements
Definition: timer.c:880
snd_timer_ginfo_get_name
char * snd_timer_ginfo_get_name(snd_timer_ginfo_t *obj)
get timer name
Definition: timer_query.c:335
snd_timer_start
int snd_timer_start(snd_timer_t *handle)
start the timer
Definition: timer.c:904
snd_timer_query_close
int snd_timer_query_close(snd_timer_query_t *handle)
close timer query handle
Definition: timer_query.c:200
snd_timer_params_get_exclusive
int snd_timer_params_get_exclusive(snd_timer_params_t *params)
determine if timer has exclusive flag
Definition: timer.c:656
snd_timer_params
int snd_timer_params(snd_timer_t *handle, snd_timer_params_t *params)
set parameters for timer handle
Definition: timer.c:772
snd_timer_ginfo_get_flags
unsigned int snd_timer_ginfo_get_flags(snd_timer_ginfo_t *obj)
get timer flags
Definition: timer_query.c:305
snd_config_t
struct _snd_config snd_config_t
Internal structure for a configuration node object.
Definition: conf.h:69
snd_timer_info_get_card
int snd_timer_info_get_card(snd_timer_info_t *info)
get timer card
Definition: timer.c:499
snd_timer_ginfo_get_tid
snd_timer_id_t * snd_timer_ginfo_get_tid(snd_timer_ginfo_t *obj)
get timer identification
Definition: timer_query.c:295
SND_TIMER_CLASS_NONE
Definition: timer.h:62
snd_timer_info_t
struct _snd_timer_info snd_timer_info_t
Definition: timer.h:55
SND_TIMER_CLASS_CARD
Definition: timer.h:65
snd_timer_id_get_card
int snd_timer_id_get_card(snd_timer_id_t *id)
get timer card
Definition: timer_query.c:544
snd_timer_id_set_device
void snd_timer_id_set_device(snd_timer_id_t *id, int device)
set timer device
Definition: timer_query.c:555
snd_timer_tread_t
Definition: timer.h:106
snd_timer_continue
int snd_timer_continue(snd_timer_t *handle)
continue the timer
Definition: timer.c:926
snd_timer_status_free
void snd_timer_status_free(snd_timer_status_t *obj)
frees the snd_timer_status_t structure
Definition: timer.c:812
snd_timer_id_set_sclass
void snd_timer_id_set_sclass(snd_timer_id_t *id, int dev_sclass)
set timer sub-class
Definition: timer_query.c:511
snd_timer_query_info
int snd_timer_query_info(snd_timer_query_t *handle, snd_timer_ginfo_t *info)
obtain the timer global information
Definition: timer_query.c:389
snd_timer_id_set_subdevice
void snd_timer_id_set_subdevice(snd_timer_id_t *id, int subdevice)
set timer subdevice
Definition: timer_query.c:577
snd_timer_params_get_queue_size
long snd_timer_params_get_queue_size(snd_timer_params_t *params)
get queue size
Definition: timer.c:728
snd_timer_ginfo_get_resolution
unsigned long snd_timer_ginfo_get_resolution(snd_timer_ginfo_t *obj)
get timer resolution in ns
Definition: timer_query.c:345
SND_TIMER_SCLASS_SEQUENCER
Definition: timer.h:74
snd_timer_ginfo_free
void snd_timer_ginfo_free(snd_timer_ginfo_t *obj)
frees the snd_timer_ginfo_t structure
Definition: timer_query.c:261
snd_async_add_timer_handler
int snd_async_add_timer_handler(snd_async_handler_t **handler, snd_timer_t *timer, snd_async_callback_t callback, void *private_data)
Add an async handler for a timer.
Definition: timer.c:295
snd_timer_params_get_auto_start
int snd_timer_params_get_auto_start(snd_timer_params_t *params)
determine if timer has auto start flag
Definition: timer.c:622
snd_timer_ginfo_get_resolution_max
unsigned long snd_timer_ginfo_get_resolution_max(snd_timer_ginfo_t *obj)
get timer maximal resolution in ns
Definition: timer_query.c:365
ptr
void * ptr
Definition: seq_event.h:199
snd_timer_info_get_id
const char * snd_timer_info_get_id(snd_timer_info_t *info)
get timer id
Definition: timer.c:510
snd_timer_ginfo_sizeof
size_t snd_timer_ginfo_sizeof(void)
get size of the snd_timer_ginfo_t structure in bytes
Definition: timer_query.c:232
snd_timer_tread_t::tstamp
snd_htimestamp_t tstamp
Definition: timer.h:108
snd_timer_ginfo_get_clients
unsigned int snd_timer_ginfo_get_clients(snd_timer_ginfo_t *obj)
get current timer clients
Definition: timer_query.c:375
snd_timer_info_get_ticks
long snd_timer_info_get_ticks(snd_timer_info_t *info)
(DEPRECATED) get maximum timer ticks
Definition: timer.c:951
snd_timer_type_t
snd_timer_type_t
Definition: timer.h:127
snd_timer_query_open
int snd_timer_query_open(snd_timer_query_t **handle, const char *name, int mode)
Opens a new connection to the timer query interface.
Definition: timer_query.c:160
snd_timer_id_set_card
void snd_timer_id_set_card(snd_timer_id_t *id, int card)
set timer card
Definition: timer_query.c:533
snd_timer_ginfo_malloc
int snd_timer_ginfo_malloc(snd_timer_ginfo_t **ptr)
allocate a new snd_timer_ginfo_t structure
Definition: timer_query.c:245
snd_timer_info
int snd_timer_info(snd_timer_t *handle, snd_timer_info_t *timer)
get information about timer handle
Definition: timer.c:545
snd_timer_class_t
snd_timer_class_t
Definition: timer.h:61
snd_timer_params_copy
void snd_timer_params_copy(snd_timer_params_t *dst, const snd_timer_params_t *src)
copy one snd_timer_params_t structure to another
Definition: timer.c:596