]> git.alsa-project.org Git - alsa-utils.git/commitdiff
aseqdump: Add missing dump of UMP Set Key Signature Message
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Aug 2024 07:40:21 +0000 (09:40 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Aug 2024 07:45:06 +0000 (09:45 +0200)
The handling of Set Key Signature message of the Flex Data type was
missing by some reason.  Now the definition was added in alsa-lib
ump_msg.h, so let's show the contents.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
seq/aseqdump/aseqdump.c

index 1d9c01e01dd3296a602a3282f539b051c2cce669..e37c87b45fc1377f6198b12f1a1ce5974a65a2c2 100644 (file)
@@ -964,6 +964,14 @@ static void dump_ump_flex_data_event(const unsigned int *ump)
                return;
        }
 
+       if (fh->meta.status_bank == SND_UMP_FLEX_DATA_MSG_BANK_SETUP &&
+           fh->meta.status == SND_UMP_FLEX_DATA_MSG_STATUS_SET_KEY_SIGNATURE) {
+               printf("UMP Set Key Signature     sharps/flats %d, tonic %d\n",
+                      fh->set_key_sig.sharps_flats,
+                      fh->set_key_sig.tonic_note);
+               return;
+       }
+
        if (fh->meta.status_bank == SND_UMP_FLEX_DATA_MSG_BANK_SETUP &&
            fh->meta.status == SND_UMP_FLEX_DATA_MSG_STATUS_SET_CHORD_NAME) {
                printf("UMP Set Chord Name     tonic %d %d %d, alt1 %d/%d, alt2 %d/%d, alt3 %d/%d, alt4 %d/%d, bass %d %d %d, alt1 %d/%d alt2 %d/%d\n",