123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169 |
- #ifndef __ALSA_HWDEP_H
- #define __ALSA_HWDEP_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define SND_HWDEP_DLSYM_VERSION _dlsym_hwdep_001
- typedef struct _snd_hwdep_info snd_hwdep_info_t;
- typedef struct _snd_hwdep_dsp_status snd_hwdep_dsp_status_t;
- typedef struct _snd_hwdep_dsp_image snd_hwdep_dsp_image_t;
- typedef enum _snd_hwdep_iface {
- SND_HWDEP_IFACE_OPL2 = 0,
- SND_HWDEP_IFACE_OPL3,
- SND_HWDEP_IFACE_OPL4,
- SND_HWDEP_IFACE_SB16CSP,
- SND_HWDEP_IFACE_EMU10K1,
- SND_HWDEP_IFACE_YSS225,
- SND_HWDEP_IFACE_ICS2115,
- SND_HWDEP_IFACE_SSCAPE,
- SND_HWDEP_IFACE_VX,
- SND_HWDEP_IFACE_MIXART,
- SND_HWDEP_IFACE_USX2Y,
- SND_HWDEP_IFACE_EMUX_WAVETABLE,
- SND_HWDEP_IFACE_BLUETOOTH,
- SND_HWDEP_IFACE_USX2Y_PCM,
- SND_HWDEP_IFACE_PCXHR,
- SND_HWDEP_IFACE_SB_RC,
- SND_HWDEP_IFACE_HDA,
- SND_HWDEP_IFACE_USB_STREAM,
- SND_HWDEP_IFACE_FW_DICE,
- SND_HWDEP_IFACE_FW_FIREWORKS,
- SND_HWDEP_IFACE_FW_BEBOB,
- SND_HWDEP_IFACE_FW_OXFW,
- SND_HWDEP_IFACE_FW_DIGI00X,
- SND_HWDEP_IFACE_FW_TASCAM,
- SND_HWDEP_IFACE_LAST = SND_HWDEP_IFACE_FW_TASCAM
- } snd_hwdep_iface_t;
- #define SND_HWDEP_OPEN_READ (O_RDONLY)
- #define SND_HWDEP_OPEN_WRITE (O_WRONLY)
- #define SND_HWDEP_OPEN_DUPLEX (O_RDWR)
- #define SND_HWDEP_OPEN_NONBLOCK (O_NONBLOCK)
- typedef enum _snd_hwdep_type {
-
- SND_HWDEP_TYPE_HW,
-
- SND_HWDEP_TYPE_SHM,
-
- SND_HWDEP_TYPE_INET
- } snd_hwdep_type_t;
- typedef struct _snd_hwdep snd_hwdep_t;
- int snd_hwdep_open(snd_hwdep_t **hwdep, const char *name, int mode);
- int snd_hwdep_close(snd_hwdep_t *hwdep);
- int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space);
- int snd_hwdep_poll_descriptors_count(snd_hwdep_t *hwdep);
- int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
- int snd_hwdep_nonblock(snd_hwdep_t *hwdep, int nonblock);
- int snd_hwdep_info(snd_hwdep_t *hwdep, snd_hwdep_info_t * info);
- int snd_hwdep_dsp_status(snd_hwdep_t *hwdep, snd_hwdep_dsp_status_t *status);
- int snd_hwdep_dsp_load(snd_hwdep_t *hwdep, snd_hwdep_dsp_image_t *block);
- int snd_hwdep_ioctl(snd_hwdep_t *hwdep, unsigned int request, void * arg);
- ssize_t snd_hwdep_write(snd_hwdep_t *hwdep, const void *buffer, size_t size);
- ssize_t snd_hwdep_read(snd_hwdep_t *hwdep, void *buffer, size_t size);
- size_t snd_hwdep_info_sizeof(void);
- #define snd_hwdep_info_alloca(ptr) __snd_alloca(ptr, snd_hwdep_info)
- int snd_hwdep_info_malloc(snd_hwdep_info_t **ptr);
- void snd_hwdep_info_free(snd_hwdep_info_t *obj);
- void snd_hwdep_info_copy(snd_hwdep_info_t *dst, const snd_hwdep_info_t *src);
- unsigned int snd_hwdep_info_get_device(const snd_hwdep_info_t *obj);
- int snd_hwdep_info_get_card(const snd_hwdep_info_t *obj);
- const char *snd_hwdep_info_get_id(const snd_hwdep_info_t *obj);
- const char *snd_hwdep_info_get_name(const snd_hwdep_info_t *obj);
- snd_hwdep_iface_t snd_hwdep_info_get_iface(const snd_hwdep_info_t *obj);
- void snd_hwdep_info_set_device(snd_hwdep_info_t *obj, unsigned int val);
- size_t snd_hwdep_dsp_status_sizeof(void);
- #define snd_hwdep_dsp_status_alloca(ptr) __snd_alloca(ptr, snd_hwdep_dsp_status)
- int snd_hwdep_dsp_status_malloc(snd_hwdep_dsp_status_t **ptr);
- void snd_hwdep_dsp_status_free(snd_hwdep_dsp_status_t *obj);
- void snd_hwdep_dsp_status_copy(snd_hwdep_dsp_status_t *dst, const snd_hwdep_dsp_status_t *src);
- unsigned int snd_hwdep_dsp_status_get_version(const snd_hwdep_dsp_status_t *obj);
- const char *snd_hwdep_dsp_status_get_id(const snd_hwdep_dsp_status_t *obj);
- unsigned int snd_hwdep_dsp_status_get_num_dsps(const snd_hwdep_dsp_status_t *obj);
- unsigned int snd_hwdep_dsp_status_get_dsp_loaded(const snd_hwdep_dsp_status_t *obj);
- unsigned int snd_hwdep_dsp_status_get_chip_ready(const snd_hwdep_dsp_status_t *obj);
- size_t snd_hwdep_dsp_image_sizeof(void);
- #define snd_hwdep_dsp_image_alloca(ptr) __snd_alloca(ptr, snd_hwdep_dsp_image)
- int snd_hwdep_dsp_image_malloc(snd_hwdep_dsp_image_t **ptr);
- void snd_hwdep_dsp_image_free(snd_hwdep_dsp_image_t *obj);
- void snd_hwdep_dsp_image_copy(snd_hwdep_dsp_image_t *dst, const snd_hwdep_dsp_image_t *src);
- unsigned int snd_hwdep_dsp_image_get_index(const snd_hwdep_dsp_image_t *obj);
- const char *snd_hwdep_dsp_image_get_name(const snd_hwdep_dsp_image_t *obj);
- const void *snd_hwdep_dsp_image_get_image(const snd_hwdep_dsp_image_t *obj);
- size_t snd_hwdep_dsp_image_get_length(const snd_hwdep_dsp_image_t *obj);
- void snd_hwdep_dsp_image_set_index(snd_hwdep_dsp_image_t *obj, unsigned int _index);
- void snd_hwdep_dsp_image_set_name(snd_hwdep_dsp_image_t *obj, const char *name);
- void snd_hwdep_dsp_image_set_image(snd_hwdep_dsp_image_t *obj, void *buffer);
- void snd_hwdep_dsp_image_set_length(snd_hwdep_dsp_image_t *obj, size_t length);
- #ifdef __cplusplus
- }
- #endif
- #endif
|