Commit graph

12 commits

Author SHA1 Message Date
Jaroslav Kysela
d3c5e9e009 rawmidi: rename enum snd_rawmidi_framing to snd_rawmidi_read_mode
We hide the internal data transfers using the data frames. Rename
the snd_rawmidi_framing enum to snd_rawmidi_read_mode to make
API more straight and understandable.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-28 08:40:20 +02:00
Jaroslav Kysela
5a5c2953ea rawmidi: define more abstract API for the timestamp reads
The frame structure is a bit internal thing for the kernel
data transfer implementation. Introduce snd_rawmidi_tread()
function which is straight for the application usage and hides
the framing data transfers (kernel space API).

The current code implements the read cache and does the merging
of the frame reads with the similar timestamps (opposite
to the kernel data split for big chunks).

If the application wants to use super-duper-lighting-fast reads,
the snd_rawmidi_read() may be used, but the structure must be
defined on it's own, because this mechanism is not preferred
and unsupported.

BugLink: https://github.com/alsa-project/alsa-lib/issues/172
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2021-10-28 08:40:20 +02:00
David Henningsson
868ecd509d test: rawmidi: Add test for rawmidi framing API
Adds a "clock type" parameter to the "rawmidi" test program, that when
used and combined with -i (and -v to be useful), activates tstamp type
framing with the specified clock type.

Signed-off-by: David Henningsson <coding@diwic.se>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-08-20 08:47:23 +02:00
Jaroslav Kysela
13892f6d17 Fixed comment 2002-07-11 08:00:45 +00:00
Jaroslav Kysela
853304bbf4 Corrections by Kevin Conder <kconder@interaccess.com> 2002-03-12 20:14:33 +00:00
Jaroslav Kysela
51b7d15a60 Fixed help 2002-03-07 10:16:07 +00:00
Jaroslav Kysela
0a8749a802 Changed location of asoundlib.h from sys dir to alsa dir.
(it means that official location is '#include <alsa/asoundlib.h>')
2001-09-11 09:34:13 +00:00
Jaroslav Kysela
68bb9a493d Ported to latest API 2001-04-27 08:32:54 +00:00
Jaroslav Kysela
34c76ccf73 Fixed test tools for latest API 2000-11-25 13:07:24 +00:00
Abramo Bagnara
2ea3fd4bb3 Completed renaming drain->stop, flush->drain (PCM). Done renaming drain->drop, flush->drain (rawmidi and seq). Removed wrong module usage count inc/dec from mmap 2000-09-29 20:49:18 +00:00
Jaroslav Kysela
c036e24220 maarten de boer <maarten.deboer@iua.upf.es>
Sat, 12 Feb 2000 17:36:07 +0100
2000-02-12 17:09:07 +00:00
Jaroslav Kysela
a9197441e0 Added rawmidi.c from maarten de boer <maarten.deboer@iua.upf.es> 2000-02-04 14:23:19 +00:00