Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)
« « « Anklang Documentation |
Public Types | |
using | Block = FastMemory::Block |
![]() | |
using | MemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)> |
using | MemberInfosP = const StringS &(*)() |
using | MemberClassT = bool(*)(const SharedBase &) |
![]() | |
using | ServerP = std::shared_ptr< Server > |
Public Member Functions | |
bool | set_data (const String &key, const Value &v) override |
Assign session data, prefix ephemerals with '_'. | |
Value | get_data (const String &key) const override |
Retrieve session data. | |
String | get_version () override |
Retrieve ASE version. | |
String | get_build_id () override |
Retrieve ASE build id. | |
String | get_opus_version () override |
Retrieve Opus handler version. | |
String | get_flac_version () override |
Retrieve FLAC handler version. | |
String | get_clap_version () override |
Retrieve CLAP support version. | |
String | get_sndfile_version () override |
Retrieve libsndfile support version. | |
String | error_blurb (Error error) const override |
String | musical_tuning_label (MusicalTuning musicaltuning) const override |
String | musical_tuning_blurb (MusicalTuning musicaltuning) const override |
uint64 | user_note (const String &text, const String &channel="misc", UserNote::Flags flags=UserNote::TRANSIENT, const String &rest="") override |
bool | user_reply (uint64 noteid, uint r) override |
bool | broadcast_telemetry (const TelemetrySegmentS &plan, int32 interval_ms) override |
Broadcast telemetry memory segments to the current Jsonipc connection. | |
void | shutdown () override |
Shutdown ASE. | |
ProjectP | last_project () override |
Retrieve the last created project. | |
ProjectP | create_project (String projectname) override |
Create a new project (name is modified to be unique if necessary. | |
PropertyP | access_preference (const String &ident) override |
Retrieve property handle for a Preference identifier. | |
StringS | list_preferences () override |
Retrieve a list of all preference identifiers. | |
Block | telemem_allocate (uint32 length) const |
void | telemem_release (Block telememblock) const |
ptrdiff_t | telemem_start () const |
![]() | |
String | get_name () const override |
void | set_name (const std::string &n) override |
void | _set_parent (GadgetImpl *parent) override |
Assign parent container. | |
GadgetImpl * | _parent () const override |
Retrieve parent container. | |
String | type_nick () const override |
PropertyS | access_properties () override |
Retrieve handles for all properties. | |
template<class O , class M > | |
void | _register_parameter (O *, M *, const Param::ExtraVals &) const |
![]() | |
ASE_USE_RESULT Connection | on_event (const String &eventselector, const EventHandler &eventhandler) override |
void | emit_event (const String &type, const String &detail, const ValueR fields={}) override |
void | emit_notify (const String &detail) override |
Emit notify:detail , multiple notifications maybe coalesced if a CoalesceNotifies instance exists. | |
![]() | |
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) |
![]() | |
template<class T > | |
void | set_custom_data (CustomDataKey< T > *key, T data) |
Assign data to the custom keyed data member, deletes any previously set data. | |
template<class T > | |
T | get_custom_data (CustomDataKey< T > *key) const |
Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set. | |
template<class T > | |
bool | has_custom_data (CustomDataKey< T > *key) const |
Retrieve wether contents of the custom keyed data member exists. | |
template<class T > | |
bool | del_custom_data (CustomDataKey< T > *key) |
Delete the current contents of the custom keyed data member, invokes DataKey::destroy. | |
![]() | |
ProjectImpl * | _project () const |
Find Project in parent ancestry. | |
virtual StringS | list_properties () |
List all property identifiers. | |
virtual PropertyP | access_property (String ident) |
Retrieve handle for a Property. | |
Value | get_value (String ident) |
Get native property value. | |
bool | set_value (String ident, const Value &v) |
![]() | |
String | engine_stats () |
Print engine state. | |
void | exit_program (int status=0) |
End program (without saving). | |
ResourceCrawlerP | dir_crawler (const String &cwd) |
Create crawler to navigate directories. | |
ResourceCrawlerP | url_crawler (const String &url) |
Create crawler to navigate URL contents. | |
Static Public Member Functions | |
static ServerImplP | instancep () |
![]() | |
static Server & | instance () |
Retrieve global Server instance. | |
static ServerP | instancep () |
Retrieve global Server instance as std::shared_ptr. | |
Additional Inherited Members | |
![]() | |
const EventHandler & | eventhandler |
![]() | |
Member<&Gadget::get_name,&Gadget::set_name > | name |
![]() | |
enum | : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK } |
![]() | |
uint64_t | gadget_flags () const |
uint64_t | gadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0)) |
virtual String | fallback_name () const |
void | serialize (WritNode &xs) override |
Serialize members and childern. | |
virtual void | create_properties () |
![]() | |
void | custom_data_destroy () |
![]() | |
static String | canonify_key (const String &input) |
![]() | |
PropertyImplS | props_ |
|
overridevirtual |
Retrieve property handle for a Preference identifier.
Implements Ase::Server.
|
overridevirtual |
Broadcast telemetry memory segments to the current Jsonipc connection.
Implements Ase::Server.
Definition at line 481 of file server.cc.
References Ase::CustomDataContainer::get_custom_data(), Ase::FastMemory::Arena::location(), and Ase::CustomDataContainer::set_custom_data().
|
overridevirtual |
Create a new project (name is modified to be unique if necessary.
Implements Ase::Server.
Implements Ase::Server.
|
overridevirtual |
Retrieve ASE build id.
Implements Ase::Server.
Definition at line 58 of file server.cc.
References Ase::ase_build_id().
|
overridevirtual |
Retrieve session data.
Reimplemented from Ase::GadgetImpl.
Definition at line 141 of file server.cc.
References std::string::size().
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Retrieve libsndfile support version.
Implements Ase::Server.
|
overridevirtual |
Retrieve ASE version.
Implements Ase::Server.
Definition at line 52 of file server.cc.
References Ase::ase_version().
|
overridevirtual |
|
overridevirtual |
Retrieve a list of all preference identifiers.
Implements Ase::Server.
Definition at line 107 of file server.cc.
References std::begin(), and std::end().
|
overridevirtual |
Implements Ase::Server.
|
overridevirtual |
Implements Ase::Server.
Assign session data, prefix ephemerals with '_'.
Reimplemented from Ase::GadgetImpl.
Definition at line 127 of file server.cc.
References Ase::Value::as_string(), and std::string::size().
|
overridevirtual |
ServerImpl::Block Ase::ServerImpl::telemem_allocate | ( | uint32 | length | ) | const |
void Ase::ServerImpl::telemem_release | ( | Block | telememblock | ) | const |
|
overridevirtual |
Implements Ase::Server.
Implements Ase::Server.