ALSA project - the C library reference: /builddir/build/BUILD/alsa-lib-1.1.8/src/rawmidi/rawmidi.c File Reference

ALSA project - the C library reference

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
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. More...
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. More...
int | snd_rawmidi_close (snd_rawmidi_t *rawmidi)
| close RawMidi handle More...
const char * | snd_rawmidi_name (snd_rawmidi_t *rawmidi)
| get identifier of RawMidi handle More...
snd_rawmidi_type_t | snd_rawmidi_type (snd_rawmidi_t *rawmidi)
| get type of RawMidi handle More...
snd_rawmidi_stream_t | snd_rawmidi_stream (snd_rawmidi_t *rawmidi)
| get stream (direction) of RawMidi handle More...
int | snd_rawmidi_poll_descriptors_count (snd_rawmidi_t *rawmidi)
| get count of poll descriptors for RawMidi handle More...
int | snd_rawmidi_poll_descriptors (snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int space)
| get poll descriptors More...
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 More...
int | snd_rawmidi_nonblock (snd_rawmidi_t *rawmidi, int nonblock)
| set nonblock mode More...
size_t | snd_rawmidi_info_sizeof ()
| get size of the snd_rawmidi_info_t structure in bytes More...
int | snd_rawmidi_info_malloc (snd_rawmidi_info_t **info)
| allocate a new snd_rawmidi_info_t structure More...
void | snd_rawmidi_info_free (snd_rawmidi_info_t *info)
| frees the snd_rawmidi_info_t structure More...
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 More...
unsigned int | snd_rawmidi_info_get_device (const snd_rawmidi_info_t *info)
| get rawmidi device number More...
unsigned int | snd_rawmidi_info_get_subdevice (const snd_rawmidi_info_t *info)
| get rawmidi subdevice number More...
snd_rawmidi_stream_t | snd_rawmidi_info_get_stream (const snd_rawmidi_info_t *info)
| get rawmidi stream identification More...
int | snd_rawmidi_info_get_card (const snd_rawmidi_info_t *info)
| get rawmidi card number More...
unsigned int | snd_rawmidi_info_get_flags (const snd_rawmidi_info_t *info)
| get rawmidi flags More...
const char * | snd_rawmidi_info_get_id (const snd_rawmidi_info_t *info)
| get rawmidi hardware driver identifier More...
const char * | snd_rawmidi_info_get_name (const snd_rawmidi_info_t *info)
| get rawmidi hardware driver name More...
const char * | snd_rawmidi_info_get_subdevice_name (const snd_rawmidi_info_t *info)
| get rawmidi subdevice name More...
unsigned int | snd_rawmidi_info_get_subdevices_count (const snd_rawmidi_info_t *info)
| get rawmidi count of subdevices More...
unsigned int | snd_rawmidi_info_get_subdevices_avail (const snd_rawmidi_info_t *info)
| get rawmidi available count of subdevices More...
void | snd_rawmidi_info_set_device (snd_rawmidi_info_t *info, unsigned int val)
| set rawmidi device number More...
void | snd_rawmidi_info_set_subdevice (snd_rawmidi_info_t *info, unsigned int val)
| set rawmidi subdevice number More...
void | snd_rawmidi_info_set_stream (snd_rawmidi_info_t *info, snd_rawmidi_stream_t val)
| set rawmidi stream identifier More...
int | snd_rawmidi_info (snd_rawmidi_t *rawmidi, snd_rawmidi_info_t *info)
| get information about RawMidi handle More...
size_t | snd_rawmidi_params_sizeof ()
| get size of the snd_rawmidi_params_t structure in bytes More...
int | snd_rawmidi_params_malloc (snd_rawmidi_params_t **params)
| allocate the snd_rawmidi_params_t structure More...
void | snd_rawmidi_params_free (snd_rawmidi_params_t *params)
| frees the snd_rawmidi_params_t structure More...
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 More...
int | snd_rawmidi_params_set_buffer_size (snd_rawmidi_t *rawmidi, snd_rawmidi_params_t *params, size_t val)
| set rawmidi I/O ring buffer size More...
size_t | snd_rawmidi_params_get_buffer_size (const snd_rawmidi_params_t *params)
| get rawmidi I/O ring buffer size More...
int | snd_rawmidi_params_set_avail_min (snd_rawmidi_t *rawmidi, snd_rawmidi_params_t *params, size_t val)
| set minimum available bytes in rawmidi I/O ring buffer for wakeup More...
size_t | snd_rawmidi_params_get_avail_min (const snd_rawmidi_params_t *params)
| get minimum available bytes in rawmidi I/O ring buffer for wakeup More...
int | snd_rawmidi_params_set_no_active_sensing (snd_rawmidi_t *rawmidi, snd_rawmidi_params_t *params, int val)
| set no-active-sensing action on snd_rawmidi_close() More...
int | snd_rawmidi_params_get_no_active_sensing (const snd_rawmidi_params_t *params)
| get no-active-sensing action status More...
int | snd_rawmidi_params (snd_rawmidi_t *rawmidi, snd_rawmidi_params_t *params)
| set parameters about rawmidi stream More...
int | snd_rawmidi_params_current (snd_rawmidi_t *rawmidi, snd_rawmidi_params_t *params)
| get current parameters about rawmidi stream More...
size_t | snd_rawmidi_status_sizeof ()
| get size of the snd_rawmidi_status_t structure in bytes More...
int | snd_rawmidi_status_malloc (snd_rawmidi_status_t **ptr)
| allocate the snd_rawmidi_status_t structure More...
void | snd_rawmidi_status_free (snd_rawmidi_status_t *status)
| frees the snd_rawmidi_status_t structure More...
void | snd_rawmidi_status_copy (snd_rawmidi_status_t *dst, const snd_rawmidi_status_t *src)
| copy one snd_rawmidi_status_t structure to another More...
void | snd_rawmidi_status_get_tstamp (const snd_rawmidi_status_t *status, snd_htimestamp_t *tstamp)
| get the start timestamp More...
size_t | snd_rawmidi_status_get_avail (const snd_rawmidi_status_t *status)
| get current available bytes in the rawmidi I/O ring buffer More...
size_t | snd_rawmidi_status_get_xruns (const snd_rawmidi_status_t *status)
| get count of xruns More...
int | snd_rawmidi_status (snd_rawmidi_t *rawmidi, snd_rawmidi_status_t *status)
| get status of rawmidi stream More...
int | snd_rawmidi_drop (snd_rawmidi_t *rawmidi)
| drop all bytes in the rawmidi I/O ring buffer immediately More...
int | snd_rawmidi_drain (snd_rawmidi_t *rawmidi)
| drain all bytes in the rawmidi I/O ring buffer More...
ssize_t | snd_rawmidi_write (snd_rawmidi_t *rawmidi, const void *buffer, size_t size)
| write MIDI bytes to MIDI stream More...
ssize_t | snd_rawmidi_read (snd_rawmidi_t *rawmidi, void *buffer, size_t size)
| read MIDI bytes from MIDI stream More...

## Detailed Description

RawMidi Interface.

Author
  Jaroslav Kysela perex.nosp@m.@per.nosp@m.ex.cz
  Abramo Bagnara abram.nosp@m.o@al.nosp@m.sa-pr.nosp@m.ojec.nosp@m.t.org

Date
  2000-2001

See the RawMidi interface page for more details.