mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 07:56:30 +01:00
aplaymidi2: Use snd_ump_get_byte() helper
For simplifying code, use snd_ump_get_byte() to retrieve the meta text data. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0188f93f02
commit
e26aa680aa
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ static void show_text(const uint32_t *ump)
|
|||
len = 0;
|
||||
|
||||
for (i = 0; i < 12 && len < (int)sizeof(textbuf); i++) {
|
||||
textbuf[len] = fh->meta.data[i / 4] >> ((3 - (i % 4)) * 8);
|
||||
textbuf[len] = snd_ump_get_byte(ump, 4 + i);
|
||||
if (!textbuf[len])
|
||||
break;
|
||||
switch (textbuf[len]) {
|
||||
|
|
Loading…
Reference in a new issue