#include <Device.h>

Public Member Functions | |
| virtual bool | isAutonomousDevice () |
| Determines whether the device is an autonomous instance of some driver or not autonomous (that is bound to some other entity). | |
| int | deviceId () const |
| Returns the numerical ID of this device instance. | |
Static Public Member Functions | |
| static bool | isAutonomousDriver () |
| Whether this is an autonomous device driver. | |
Protected Member Functions | |
| void | setDeviceId (int id) |
Friends | |
| class | AudioOutputDeviceFactory |
| class | MidiInputDeviceFactory |
Definition at line 35 of file Device.h.
| int LinuxSampler::Device::deviceId | ( | ) | const |
Returns the numerical ID of this device instance.
Every device instance has a unique ID among all devices of its category, that is e.g. every MIDI input device has a unique ID among all MIDI input devices and every audio output device has a unique ID among all audio output devices. The IDs are usually generated by the respective factory class.
| virtual bool LinuxSampler::Device::isAutonomousDevice | ( | ) | [virtual] |
Determines whether the device is an autonomous instance of some driver or not autonomous (that is bound to some other entity).
An autonomous device can be created and deleted separately. A non autonomous device only exists in the context of some entity, e.g. in the context of a host plugin (VST, AU, LV2, DSSI, ...) instance, and thus such a device cannot be created or deleted on its own.
By default, this method returns true unless overridden by the descendent.
| static bool LinuxSampler::Device::isAutonomousDriver | ( | ) | [static] |
| void LinuxSampler::Device::setDeviceId | ( | int | id | ) | [protected] |
friend class AudioOutputDeviceFactory [friend] |
friend class MidiInputDeviceFactory [friend] |