From b2a05a8912ff6b38c160494b64e999be55e10983 Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Mon, 2 Jul 2018 03:01:10 +0200 Subject: color attribute for channel descriptor --- src/adlmidi_midiplay.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/adlmidi_midiplay.cpp b/src/adlmidi_midiplay.cpp index 76d54ab..4ca9550 100644 --- a/src/adlmidi_midiplay.cpp +++ b/src/adlmidi_midiplay.cpp @@ -1761,7 +1761,11 @@ void MIDIplay::describeChannels(char *str, char *attr, size_t size) } } - attr[index] = '\0'; // TODO + uint8_t attribute = 0; + if (loc) // 4-bit color index of MIDI channel + attribute |= (uint8_t)(loc->loc.MidCh & 0xF); + + attr[index] = (char)attribute; } str[index] = 0; -- cgit v1.2.3