linuxsampler 2.3.1
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

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

◆ deviceId()

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.

◆ isAutonomousDevice()

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.

◆ isAutonomousDriver()

static bool LinuxSampler::Device::isAutonomousDriver ( )
static

Whether this is an autonomous device driver.

See also
isAutonomousDevice()

◆ setDeviceId()

void LinuxSampler::Device::setDeviceId ( int  id)
protected

Friends And Related Symbol Documentation

◆ AudioOutputDeviceFactory

friend class AudioOutputDeviceFactory
friend

Definition at line 72 of file Device.h.

◆ MidiInputDeviceFactory

friend class MidiInputDeviceFactory
friend

Definition at line 73 of file Device.h.


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