MSVC DEBUG! MSVC DEBUG! MSVC DEBUG!
DO NOT USE! I AM DEBUGGING A CRASH! ONLY FOR TESTER
This commit is contained in:
parent
39349d2fde
commit
0d5c7da774
4 changed files with 30 additions and 17 deletions
|
|
@ -58,7 +58,7 @@ bool TAMidiInRtMidi::gather() {
|
|||
if (m.type!=TA_MIDI_SYSEX && msg.size()>1) {
|
||||
memcpy(m.data,msg.data()+1,MIN(msg.size()-1,7));
|
||||
} else if (m.type==TA_MIDI_SYSEX) {
|
||||
m.sysExData.reset(new unsigned char[msg.size()]);
|
||||
m.sysExData=std::shared_ptr<unsigned char>(new unsigned char[msg.size()],std::default_delete<unsigned char[]>());
|
||||
m.sysExLen=msg.size();
|
||||
logD("got a SysEx of length %ld!",msg.size());
|
||||
memcpy(m.sysExData.get(),msg.data(),msg.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue