Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Interface to access NativeDevice instances. More...
#include "api.hh"
Public Member Functions | |
virtual bool | is_combo_device ()=0 |
Retrieve wether this NativeDevice handles sub devices. | |
DeviceInfoS | list_device_types () |
List registered Device types with their unique uri. | |
virtual void | remove_device (Device &sub)=0 |
Remove a directly contained device. | |
virtual DeviceP | append_device (const String &uri)=0 |
Append a new device, see list_device_types(). | |
virtual DeviceP | insert_device (const String &uri, Device &beforesibling)=0 |
Insert a new device, before beforesibling . | |
![]() | |
Track * | _track () const |
Find Track in parent ancestry. | |
virtual AudioProcessorP | _audio_processor () const =0 |
Retrieve the corresponding AudioProcessor. | |
virtual void | _set_event_source (AudioProcessorP esource)=0 |
virtual void | _activate ()=0 |
Add AudioProcessor to the Engine and start processing. | |
virtual void | _deactivate ()=0 |
Stop processing the corresponding AudioProcessor. | |
virtual void | _disconnect_remove ()=0 |
Disconnect the device and remove all object references. | |
virtual bool | is_active ()=0 |
Check whether this is the active synthesis engine project. | |
virtual DeviceInfo | device_info ()=0 |
Describe this Device type. | |
virtual DeviceS | get_devices () const =0 |
List devices in order of processing, notified via "devs". | |
virtual void | set_devices (const DeviceS &devices)=0 |
Set the list of devices. | |
void | remove_self () |
Remove device from its container. | |
virtual void | gui_toggle ()=0 |
Toggle GUI display. | |
virtual bool | gui_supported ()=0 |
Has GUI display facilities. | |
virtual bool | gui_visible ()=0 |
Is GUI currently visible. | |
![]() | |
virtual GadgetImpl * | _parent () const =0 |
Retrieve parent container. | |
virtual void | _set_parent (GadgetImpl *parent)=0 |
Assign parent container. | |
ProjectImpl * | _project () const |
Find Project in parent ancestry. | |
virtual String | get_name () const =0 |
virtual void | set_name (const std::string &n)=0 |
virtual String | type_nick () const =0 |
virtual StringS | list_properties () |
List all property identifiers. | |
virtual PropertyP | access_property (String ident) |
Retrieve handle for a Property. | |
virtual PropertyS | access_properties ()=0 |
Retrieve handles for all properties. | |
Value | get_value (String ident) |
Get native property value. | |
bool | set_value (String ident, const Value &v) |
virtual bool | set_data (const String &key, const Value &v)=0 |
Assign session data, prefix ephemerals with '_'. | |
virtual Value | get_data (const String &key) const =0 |
Retrieve session data. | |
![]() | |
virtual void | emit_event (const String &type, const String &detail, const ValueR fields={})=0 |
virtual void | emit_notify (const String &detail)=0 |
void | js_trigger (const String &eventselector, JsTrigger callback) |
![]() | |
T | enable_shared_from_this (T... args) |
T | operator= (T... args) |
T | shared_from_this (T... args) |
T | weak_from_this (T... args) |
T | ~enable_shared_from_this (T... args) |
Additional Inherited Members | |
![]() | |
Member<&Device::get_devices,&Device::set_devices > | devices |
![]() | |
Member<&Gadget::get_name,&Gadget::set_name > | name |
![]() | |
const EventHandler & | eventhandler |
Interface to access NativeDevice instances.
|
pure virtual |
Append a new device, see list_device_types().
Implemented in Ase::NativeDeviceImpl.
|
pure virtual |
Insert a new device, before beforesibling
.
Implemented in Ase::NativeDeviceImpl.
|
pure virtual |
Retrieve wether this NativeDevice handles sub devices.
Implemented in Ase::NativeDeviceImpl.
DeviceInfoS Ase::NativeDevice::list_device_types | ( | ) |
List registered Device types with their unique uri.
Definition at line 204 of file nativedevice.cc.
References Ase::DeviceInfo::category, Ase::AudioProcessorInfo::category, Ase::DeviceInfo::creator_name, Ase::AudioProcessorInfo::creator_name, Ase::DeviceInfo::creator_url, Ase::AudioProcessorInfo::creator_url, Ase::DeviceInfo::description, Ase::AudioProcessorInfo::description, std::string::empty(), Ase::AudioProcessorInfo::label, Ase::DeviceInfo::name, Ase::DeviceInfo::uri, Ase::DeviceInfo::website_url, and Ase::AudioProcessorInfo::website_url.
|
pure virtual |
Remove a directly contained device.
Implemented in Ase::NativeDeviceImpl.
Referenced by Ase::Device::remove_self().