MayaFlux 0.4.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 289 of file InputBinding.cpp.

290{
291 if (type != Type::OSC)
292 return nullptr;
293 return &std::get<OSCMessage>(data);
294}
@ OSC
Structured OSC message.
std::variant< double, std::vector< double >, std::vector< uint8_t >, MIDIMessage, OSCMessage > data

References data, OSC, and type.