Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages | Examples

rawmidi.c File Reference

RawMidi Interface. More...


Functions

int snd_rawmidi_open (snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, const char *name, int mode)
 Opens a new connection to the RawMidi interface.
int snd_rawmidi_open_lconf (snd_rawmidi_t **inputp, snd_rawmidi_t **outputp, const char *name, int mode, snd_config_t *lconf)
 Opens a new connection to the RawMidi interface using local configuration.
int snd_rawmidi_close (snd_rawmidi_t *rawmidi)
 close RawMidi handle
const char * snd_rawmidi_name (snd_rawmidi_t *rawmidi)
 get identifier of RawMidi handle
snd_rawmidi_type_t snd_rawmidi_type (snd_rawmidi_t *rawmidi)
 get type of RawMidi handle
snd_rawmidi_stream_t snd_rawmidi_stream (snd_rawmidi_t *rawmidi)
 get stream (direction) of RawMidi handle
int snd_rawmidi_poll_descriptors_count (snd_rawmidi_t *rawmidi)
 get count of poll descriptors for RawMidi handle
int snd_rawmidi_poll_descriptors (snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int space)
 get poll descriptors
int snd_rawmidi_poll_descriptors_revents (snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int nfds, unsigned short *revents)
 get returned events from poll descriptors
int snd_rawmidi_nonblock (snd_rawmidi_t *rawmidi, int nonblock)
 set nonblock mode
size_t snd_rawmidi_info_sizeof ()
 get size of the snd_rawmidi_info_t structure in bytes
int snd_rawmidi_info_malloc (snd_rawmidi_info_t **info)
 allocate a new snd_rawmidi_info_t structure
void snd_rawmidi_info_free (snd_rawmidi_info_t *info)
 frees the snd_rawmidi_info_t structure
void snd_rawmidi_info_copy (snd_rawmidi_info_t *dst, const snd_rawmidi_info_t *src)
 copy one snd_rawmidi_info_t structure to another
unsigned int snd_rawmidi_info_get_device (const snd_rawmidi_info_t *info)
 get rawmidi device number
unsigned int snd_rawmidi_info_get_subdevice (const snd_rawmidi_info_t *info)
 get rawmidi subdevice number
snd_rawmidi_stream_t snd_rawmidi_info_get_stream (const snd_rawmidi_info_t *info)
 get rawmidi stream identification
int snd_rawmidi_info_get_card (const snd_rawmidi_info_t *info)
 get rawmidi card number
unsigned int snd_rawmidi_info_get_flags (const snd_rawmidi_info_t *info)
 get rawmidi flags
const char * snd_rawmidi_info_get_id (const snd_rawmidi_info_t *info)
 get rawmidi hardware driver identifier
const char * snd_rawmidi_info_get_name (const snd_rawmidi_info_t *info)
 get rawmidi hardware driver name
const char * snd_rawmidi_info_get_subdevice_name (const snd_rawmidi_info_t *info)
 get rawmidi subdevice name
unsigned int snd_rawmidi_info_get_subdevices_count (const snd_rawmidi_info_t *info)
 get rawmidi count of subdevices
unsigned int snd_rawmidi_info_get_subdevices_avail (const snd_rawmidi_info_t *info)
 get rawmidi available count of subdevices
void snd_rawmidi_info_set_device (snd_rawmidi_info_t *info, unsigned int val)
 set rawmidi device number
void snd_rawmidi_info_set_subdevice (snd_rawmidi_info_t *info, unsigned int val)
 set rawmidi subdevice number
void snd_rawmidi_info_set_stream (snd_rawmidi_info_t *info, snd_rawmidi_stream_t val)
 set rawmidi stream identifier
int snd_rawmidi_info (snd_rawmidi_t *rawmidi, snd_rawmidi_info_t *info)
 get information about RawMidi handle
size_t snd_rawmidi_params_sizeof ()
 get size of the snd_rawmidi_params_t structure in bytes
int snd_rawmidi_params_malloc (snd_rawmidi_params_t **params)
 allocate the snd_rawmidi_params_t structure
void snd_rawmidi_params_free (snd_rawmidi_params_t *params)
 frees the snd_rawmidi_params_t structure
void snd_rawmidi_params_copy (snd_rawmidi_params_t *dst, const snd_rawmidi_params_t *src)
 copy one snd_rawmidi_params_t structure to another
int snd_rawmidi_params_set_buffer_size (snd_rawmidi_t *rawmidi ATTRIBUTE_UNUSED, snd_rawmidi_params_t *params, size_t val) int snd_rawmidi_params_set_buffer_size(snd_rawmidi_t *rawmidi
 set rawmidi I/O ring buffer size

Variables

int snd_rawmidi_params_tparams


Detailed Description

RawMidi Interface.

Author:
Jaroslav Kysela <perex@suse.cz>

Abramo Bagnara <abramo@alsa-project.org>

Date:
2000-2001
See the RawMidi interface page for more details.

Function Documentation

int snd_rawmidi_params_set_buffer_size snd_rawmidi_t *rawmidi  ATTRIBUTE_UNUSED,
snd_rawmidi_params_t params,
size_t  val
 

set rawmidi I/O ring buffer size

Parameters:
rawmidi RawMidi handle
params pointer to a snd_rawmidi_params_t structure
val size in bytes
Returns:
0 on success otherwise a negative error code


Generated on Thu Jun 16 10:59:13 2005 for ALSA project - the C library reference by  doxygen 1.4.2