LinuxSampler::Device Class Reference

Abstract base class for all kind of drivers in LinuxSampler. More...

#include <Device.h>

Inheritance diagram for LinuxSampler::Device:
LinuxSampler::AudioOutputDevice LinuxSampler::MidiInputDevice

List of all members.

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

Detailed Description

Abstract base class for all kind of drivers in LinuxSampler.

Definition at line 35 of file Device.h.


Member Function Documentation

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]

Whether this is an autonomous device driver.

See also:
isAutonomousDevice()
void LinuxSampler::Device::setDeviceId ( int  id  )  [protected]

Friends And Related Function Documentation

friend class AudioOutputDeviceFactory [friend]

Reimplemented in LinuxSampler::AudioOutputDevice.

Definition at line 72 of file Device.h.

friend class MidiInputDeviceFactory [friend]

Reimplemented in LinuxSampler::MidiInputDevice.

Definition at line 73 of file Device.h.


The documentation for this class was generated from the following file:
Generated on Sat Jan 28 11:44:02 2012 for linuxsampler by  doxygen 1.6.3