History

remove restriction in MidiOut on message size; thanks mariobuoninfante for the fix

Ge Wang committed 5 years ago

Commit 2bfcc0d1 parent 96265323 files · +14 −5Browse files

Showing the changes to src/core/rtmidi.cpp (1 of 3 files). Show all

Unified · Split

src/core/rtmidi.cpp+6−5
@@ -1418,11 +1418,12 @@ void RtMidiOut :: sendMessage( std::vector<unsigned char> *message ) · 1417 unmodified lines
1418 snd_seq_ev_set_direct(&ev);1418 snd_seq_ev_set_direct(&ev);
1419 for ( unsigned int i=0; i<nBytes; i++ ) data->buffer[i] = message->at(i);1419 for ( unsigned int i=0; i<nBytes; i++ ) data->buffer[i] = message->at(i);
1420 result = snd_midi_event_encode( data->coder, data->buffer, (long)nBytes, &ev );1420 result = snd_midi_event_encode( data->coder, data->buffer, (long)nBytes, &ev );
1421 if ( result < (int)nBytes ) {1421 // commenting this out allows sending MIDI messages < and > 3 | 1.4.0.2 (mariobuoninfante)
1422 errorString_ = "RtMidiOut::sendMessage: event parsing error!";1422 // if( result < (int)nBytes ) {
1423 error( RtMidiError::WARNING );1423 // errorString_ = "RtMidiOut::sendMessage: event parsing error!";
1424 return;1424 // error( RtMidiError::WARNING );
1425 }1425 // return;
1426 // }
1426 1427
1427 // Send the event.1428 // Send the event.
1428 result = snd_seq_event_output(data->seq, &ev);1429 result = snd_seq_event_output(data->seq, &ev);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t