aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/adlmidi_midiplay.cpp6
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;