From 8e91da01346386798a53dc4c7a2dd6676f6eace1 Mon Sep 17 00:00:00 2001 From: kevin Date: Thu, 8 Feb 2024 11:18:49 -0500 Subject: [PATCH] cwMidiRecordPlay.cpp : _xmit_midi() no longer transmits messages to devices that are not enabled. --- cwIoMidiRecordPlay.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cwIoMidiRecordPlay.cpp b/cwIoMidiRecordPlay.cpp index c22b7ba..228ca2e 100644 --- a/cwIoMidiRecordPlay.cpp +++ b/cwIoMidiRecordPlay.cpp @@ -213,7 +213,7 @@ namespace cw void _xmit_midi( midi_record_play_t* p, unsigned devIdx, uint8_t ch, uint8_t status, uint8_t d0, uint8_t d1 ) { - if( !p->supressMidiXmitFl ) + if( !p->supressMidiXmitFl && p->midiDevA[devIdx].enableFl ) io::midiDeviceSend( p->ioH, p->midiDevA[devIdx].midiOutDevIdx, p->midiDevA[devIdx].midiOutPortIdx, status + ch, d0, d1 ); } @@ -1465,8 +1465,6 @@ cw::rc_t cw::midi_record_play::create( handle_t& hRef, p = mem::allocZ(); - printf("P0:%p\n",p); - p->ioH = ioH; // p->ioH is used in _destory() so initialize it here // parse the cfg