a bit better instruments display

This commit is contained in:
maksw committed 2025-05-17 12:17:42 +02:00
1 parent 39a1759601
commit 31c7834d3a
1 file changed
+3
+3
View File
@@ -183,6 +183,9 @@ int main(int argc, char** argv) {
bool shouldPlay = true;
std::thread monitorThread([&]() {
const int linesPerUpdate = 18; // 16 channels + header/footer
std::cout << "--- Active Instruments ---\n";
ShowActiveInstruments(midiStream);
std::cout << "--------------------------\n";
while (BASS_ChannelIsActive(midiStream) == BASS_ACTIVE_PLAYING && shouldPlay) {
std::this_thread::sleep_for(std::chrono::seconds(1));
ClearLines(linesPerUpdate);