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

◆ is_device_open()

bool MayaFlux::Core::MIDIBackend::is_device_open ( uint32_t  device_id) const
overridevirtual

Check if a device is currently open.

Implements MayaFlux::Core::IInputBackend.

Definition at line 277 of file MIDIBackend.cpp.

278{
279 std::lock_guard lock(m_devices_mutex);
280 return m_open_devices.find(device_id) != m_open_devices.end();
281}
std::unordered_map< uint32_t, std::shared_ptr< MIDIPortState > > m_open_devices

References m_devices_mutex, and m_open_devices.