Om  1.0.0
A universal framework for multimedia simulation
Public Attributes | List of all members
om::sound::devices::MIDIDeviceManagerDelegate Class Reference

A class that contains function objects that recieve MIDIDeviceManager events. More...

#include <omSoundMIDIDeviceManagerDelegate.h>

Public Attributes

Function< void(MIDIDeviceManager &manager, const MIDIDeviceID &deviceID)> deviceAdded
 A function object that is called whenever a new MIDI device is discovered by the system. More...
 
Function< void(MIDIDeviceManager &manager, const MIDIDeviceID &deviceID)> deviceRemoved
 A function object that is called whenever a MIDI device is removed from the system. More...
 

Detailed Description

A class that contains function objects that recieve MIDIDeviceManager events.

Any device-manager-related event that might be processed has an appropriate callback function object. Each callback function is called by the device manager whenever such an event is received. If a callback function in the delegate is not initialized, the device manager simply ignores it.

Member Data Documentation

Function<void ( MIDIDeviceManager& manager, const MIDIDeviceID& deviceID )> om::sound::devices::MIDIDeviceManagerDelegate::deviceAdded

A function object that is called whenever a new MIDI device is discovered by the system.

This callback is called whenever a new MIDI device is connected or added to the system. This allows the user to use new MIDI devices as they are discovered.

This method will be called from a separate thread (the audio processing thread) so any data accessed in the callback function should use proper thread synchonization to avoid unsafe access.

Function<void ( MIDIDeviceManager& manager, const MIDIDeviceID& deviceID )> om::sound::devices::MIDIDeviceManagerDelegate::deviceRemoved

A function object that is called whenever a MIDI device is removed from the system.

This callback is called whenever a MIDI device is disconnected or removed from the system. This allows the user to know when devices are disconnected and to discontinue use of those devices.

This method will be called from a separate thread (the audio processing thread) so any data accessed in the callback function should use proper thread synchonization to avoid unsafe access.


The documentation for this class was generated from the following file: