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

◆ deliver()

void MayaFlux::Core::SerialReader::deliver ( std::optional< InputValue > value)
private

Definition at line 125 of file SerialReader.cpp.

126{
127 if (!value) {
128 m_unparsed.fetch_add(1);
129 return;
130 }
131
132 value->device_id = m_id;
133 value->source_type = InputType::SERIAL;
134 if (m_on_value) {
135 m_on_value(*value);
136 }
137}
std::atomic< uint64_t > m_unparsed
@ SERIAL
Serial port communication (Arduino, etc.).

References m_id, m_on_value, m_unparsed, and MayaFlux::Core::SERIAL.

Referenced by handle_frame(), and parse_midi().

Here is the caller graph for this function: