Anklang 0.3.0-460-gc4ef46ba
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
Ase::ClapPluginHandle Class Referenceabstract
Inheritance diagram for Ase::ClapPluginHandle:
[legend]

Public Member Functions

String clapid () const
 
virtual void load_state (WritNode &xs)=0
 
virtual void save_state (WritNode &xs, const String &device_path)=0
 
virtual bool param_set_property (clap_id param_id, PropertyP prop)=0
 
virtual PropertyP param_get_property (clap_id param_id)=0
 
virtual double param_get_value (clap_id param_id, String *text=nullptr)=0
 
virtual bool param_set_value (clap_id param_id, double v)=0
 
virtual bool param_set_value (clap_id param_id, const String &stringvalue)=0
 
virtual ClapParamInfoS param_infos ()=0
 
virtual void params_changed ()=0
 
virtual bool clap_activate ()=0
 
virtual bool clap_activated () const =0
 
virtual void clap_deactivate ()=0
 
virtual void show_gui ()=0
 
virtual void hide_gui ()=0
 
virtual bool gui_visible ()=0
 
virtual bool supports_gui ()=0
 
virtual void destroy_gui ()=0
 
virtual void destroy ()=0
 
virtual AudioProcessorP audio_processor ()=0
 
- Public Member Functions inherited from Ase::GadgetImpl
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.
 
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.
 
template<class O , class M >
void _register_parameter (O *, M *, const Param::ExtraVals &) const
 
- Public Member Functions inherited from Ase::EmittableImpl
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.
 
- Public Member Functions inherited from Ase::Emittable
void js_trigger (const String &eventselector, JsTrigger callback)
 
- Public Member Functions inherited from std::enable_shared_from_this< SharedBase >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 
~enable_shared_from_this (T... args)
 
- Public Member Functions inherited from Ase::CustomDataContainer
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 >
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.
 
- Public Member Functions inherited from Ase::Gadget
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)
 

Static Public Member Functions

static ClapPluginHandleP make_clap_handle (const ClapPluginDescriptor &descriptor, AudioProcessorP audio_processor)
 
static CString audio_processor_type ()
 

Public Attributes

const ClapPluginDescriptordescriptor
 
const std::vector< clap_audio_ports_config_t > & audio_ports_configs
 
const std::vector< clap_audio_port_info_t > & audio_iport_infos
 
const std::vector< clap_audio_port_info_t > & audio_oport_infos
 
const std::vector< clap_note_port_info_t > & note_iport_infos
 
const std::vector< clap_note_port_info_t > & note_oport_infos
 
- Public Attributes inherited from Ase::Emittable
const EventHandlereventhandler
 
- Public Attributes inherited from Ase::Gadget
Member<&Gadget::get_name,&Gadget::set_name > name
 

Protected Member Functions

 ClapPluginHandle (const ClapPluginDescriptor &descriptor)
 
- Protected Member Functions inherited from Ase::GadgetImpl
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 ()
 
- Protected Member Functions inherited from Ase::CustomDataContainer
void custom_data_destroy ()
 

Protected Attributes

std::vector< clap_audio_ports_config_t > audio_ports_configs_
 
std::vector< clap_audio_port_info_t > audio_iport_infos_
 
std::vector< clap_audio_port_info_t > audio_oport_infos_
 
std::vector< clap_note_port_info_t > note_iport_infos_
 
std::vector< clap_note_port_info_t > note_oport_infos_
 
std::vector< clap_audio_buffer_t > audio_inputs_
 
std::vector< clap_audio_buffer_t > audio_outputs_
 
std::vector< float * > data32ptrs_
 
- Protected Attributes inherited from Ase::GadgetImpl
PropertyImplS props_
 

Friends

class ClapAudioProcessor
 

Additional Inherited Members

- Public Types inherited from Ase::GadgetImpl
using MemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)>
 
using MemberInfosP = const StringS &(*)()
 
using MemberClassT = bool(*)(const SharedBase &)
 
- Protected Types inherited from Ase::GadgetImpl
enum  : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK }
 
- Static Protected Member Functions inherited from Ase::GadgetImpl
static String canonify_key (const String &input)
 

Detailed Description

Definition at line 51 of file clapplugin.hh.

Constructor & Destructor Documentation

◆ ClapPluginHandle()

Ase::ClapPluginHandle::ClapPluginHandle ( const ClapPluginDescriptor descriptor)
explicitprotected

Definition at line 1984 of file clapplugin.cc.

◆ ~ClapPluginHandle()

Ase::ClapPluginHandle::~ClapPluginHandle ( )
protectedvirtual

Definition at line 1990 of file clapplugin.cc.

Member Function Documentation

◆ audio_processor_type()

CString Ase::ClapPluginHandle::audio_processor_type ( )
static

Definition at line 1996 of file clapplugin.cc.

◆ clapid()

String Ase::ClapPluginHandle::clapid ( ) const

Definition at line 68 of file clapplugin.hh.

◆ make_clap_handle()

ClapPluginHandleP Ase::ClapPluginHandle::make_clap_handle ( const ClapPluginDescriptor descriptor,
AudioProcessorP  audio_processor 
)
static

Definition at line 2002 of file clapplugin.cc.

Friends And Related Symbol Documentation

◆ ClapAudioProcessor

friend class ClapAudioProcessor
friend

Definition at line 90 of file clapplugin.hh.

Member Data Documentation

◆ audio_inputs_

std::vector<clap_audio_buffer_t> Ase::ClapPluginHandle::audio_inputs_
protected

Definition at line 63 of file clapplugin.hh.

◆ audio_iport_infos

const std::vector<clap_audio_port_info_t>& Ase::ClapPluginHandle::audio_iport_infos

Definition at line 55 of file clapplugin.hh.

◆ audio_iport_infos_

std::vector<clap_audio_port_info_t> Ase::ClapPluginHandle::audio_iport_infos_
protected

Definition at line 61 of file clapplugin.hh.

◆ audio_oport_infos

const std::vector<clap_audio_port_info_t>& Ase::ClapPluginHandle::audio_oport_infos

Definition at line 56 of file clapplugin.hh.

◆ audio_oport_infos_

std::vector<clap_audio_port_info_t> Ase::ClapPluginHandle::audio_oport_infos_
protected

Definition at line 61 of file clapplugin.hh.

◆ audio_outputs_

std::vector<clap_audio_buffer_t> Ase::ClapPluginHandle::audio_outputs_
protected

Definition at line 63 of file clapplugin.hh.

◆ audio_ports_configs

const std::vector<clap_audio_ports_config_t>& Ase::ClapPluginHandle::audio_ports_configs

Definition at line 54 of file clapplugin.hh.

◆ audio_ports_configs_

std::vector<clap_audio_ports_config_t> Ase::ClapPluginHandle::audio_ports_configs_
protected

Definition at line 60 of file clapplugin.hh.

◆ data32ptrs_

std::vector<float*> Ase::ClapPluginHandle::data32ptrs_
protected

Definition at line 64 of file clapplugin.hh.

◆ descriptor

const ClapPluginDescriptor& Ase::ClapPluginHandle::descriptor

Definition at line 53 of file clapplugin.hh.

◆ note_iport_infos

const std::vector<clap_note_port_info_t>& Ase::ClapPluginHandle::note_iport_infos

Definition at line 57 of file clapplugin.hh.

◆ note_iport_infos_

std::vector<clap_note_port_info_t> Ase::ClapPluginHandle::note_iport_infos_
protected

Definition at line 62 of file clapplugin.hh.

◆ note_oport_infos

const std::vector<clap_note_port_info_t>& Ase::ClapPluginHandle::note_oport_infos

Definition at line 58 of file clapplugin.hh.

◆ note_oport_infos_

std::vector<clap_note_port_info_t> Ase::ClapPluginHandle::note_oport_infos_
protected

Definition at line 62 of file clapplugin.hh.


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