diff options
author | JP Cimalando <jpcima@users.noreply.github.com> | 2018-07-02 03:01:10 +0200 |
---|---|---|
committer | JP Cimalando <jpcima@users.noreply.github.com> | 2018-07-02 03:01:10 +0200 |
commit | b2a05a8912ff6b38c160494b64e999be55e10983 (patch) | |
tree | 3216551ade6d04d308ed8aff4db088e471818124 /src/adlmidi_midiplay.cpp | |
parent | 7181959675c1658cff313a161f3a96f88a118baa (diff) | |
download | libADLMIDI-b2a05a8912ff6b38c160494b64e999be55e10983.tar.gz libADLMIDI-b2a05a8912ff6b38c160494b64e999be55e10983.tar.bz2 libADLMIDI-b2a05a8912ff6b38c160494b64e999be55e10983.zip |
color attribute for channel descriptor
Diffstat (limited to 'src/adlmidi_midiplay.cpp')
-rw-r--r-- | src/adlmidi_midiplay.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; |