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>
This commit is contained in:
Jaroslav Kysela 2021-09-22 11:05:23 +02:00
parent 5a5c2953ea
commit d3c5e9e009
3 changed files with 37 additions and 21 deletions

View file

@ -151,9 +151,9 @@ int main(int argc,char** argv)
if (clock_type != -1) {
fprintf(stderr, "Enable kernel clock type %d\n", clock_type);
snd_rawmidi_params_current(handle_in, params);
err = snd_rawmidi_params_set_framing_type(handle_in, params, 1);
err = snd_rawmidi_params_set_read_mode(handle_in, params, SND_RAWMIDI_READ_TSTAMP);
if (err) {
fprintf(stderr,"snd_rawmidi_params_set_framing_type failed: %d\n", err);
fprintf(stderr,"snd_rawmidi_params_set_read_mode failed: %d\n", err);
clock_type = -1;
}
}