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

◆ try_osc()

const InputValue::OSCMessage * MayaFlux::Core::InputValue::try_osc ( ) const
noexcept

Safe OSC extraction.

Returns
Pointer to OSCMessage, or nullptr if this is not OSC.

Definition at line 294 of file InputBinding.cpp.

295{
296 if (type != Type::OSC)
297 return nullptr;
298 return &std::get<OSCMessage>(data);
299}
@ OSC
Structured OSC message.
std::variant< double, std::vector< double >, std::vector< uint8_t >, MIDIMessage, OSCMessage > data

References data, OSC, and type.