mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
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:
parent
5a5c2953ea
commit
d3c5e9e009
3 changed files with 37 additions and 21 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue