MayaFlux 0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ rtmidi_callback()

void MayaFlux::Core::MIDIBackend::rtmidi_callback ( double  timestamp,
std::vector< unsigned char > *  message,
void *  user_data 
)
staticprivate

Definition at line 370 of file MIDIBackend.cpp.

371{
372 auto* state = static_cast<MIDIPortState*>(user_data);
373 if (!state || !message || message->empty()) {
374 return;
375 }
376
377 InputValue value = InputValue::make_midi(
378 message->at(0),
379 message->size() > 1 ? message->at(1) : 0,
380 message->size() > 2 ? message->at(2) : 0,
381 state->device_id);
382
383 if (state->input_callback) {
384 state->input_callback(value);
385 }
386}
static InputValue make_midi(uint8_t status, uint8_t d1, uint8_t d2, uint32_t dev_id)

References MayaFlux::Core::InputValue::make_midi().

Referenced by open_device().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: