Ardour
9.0-pre0-582-g084a23a80d
|
#include <audio_unit.h>
Public Member Functions | |
AUPlugin (AudioEngine &engine, Session &session, std::shared_ptr< CAComponent > comp) | |
AUPlugin (const AUPlugin &other) | |
virtual | ~AUPlugin () |
std::string | unique_id () const |
const char * | label () const |
const char * | name () const |
const char * | maker () const |
uint32_t | parameter_count () const |
float | default_value (uint32_t port) |
void | set_parameter (uint32_t which, float val, sampleoffset_t) |
float | get_parameter (uint32_t which) const |
PluginOutputConfiguration | possible_output () const |
int | get_parameter_descriptor (uint32_t which, ParameterDescriptor &) const |
uint32_t | nth_parameter (uint32_t which, bool &ok) const |
void | activate () |
void | deactivate () |
void | flush () |
int | set_block_size (pframes_t nframes) |
void | set_non_realtime (bool) |
int | connect_and_run (BufferSet &bufs, samplepos_t start, samplepos_t end, double speed, ChanMapping const &in, ChanMapping const &out, pframes_t nframes, samplecnt_t offset) |
std::set< Evoral::Parameter > | automatable () const |
std::string | describe_parameter (Evoral::Parameter) |
IOPortDescription | describe_io_port (DataType dt, bool input, uint32_t id) const |
std::string | state_node_name () const |
bool | parameter_is_audio (uint32_t) const |
bool | parameter_is_control (uint32_t) const |
bool | parameter_is_input (uint32_t) const |
bool | parameter_is_output (uint32_t) const |
void | set_info (PluginInfoPtr) |
int | set_state (const XMLNode &node, int) |
bool | load_preset (PresetRecord) |
std::string | current_preset () const |
bool | has_editor () const |
bool | match_variable_io (ChanCount &in, ChanCount &aux_in, ChanCount &out) |
bool | reconfigure_io (ChanCount in, ChanCount aux_in, ChanCount out) |
ChanCount | output_streams () const |
ChanCount | input_streams () const |
bool | requires_fixed_size_buffers () const |
void | set_fixed_size_buffers (bool yn) |
std::shared_ptr< CAAudioUnit > | get_au () |
std::shared_ptr< CAComponent > | get_comp () const |
OSStatus | render_callback (AudioUnitRenderActionFlags *ioActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumberSamples, AudioBufferList *ioData) |
OSStatus | get_beat_and_tempo_callback (Float64 *outCurrentBeat, Float64 *outCurrentTempo) |
OSStatus | get_musical_time_location_callback (UInt32 *outDeltaSampleOffsetToNextBeat, Float32 *outTimeSig_Numerator, UInt32 *outTimeSig_Denominator, Float64 *outCurrentMeasureDownBeat) |
OSStatus | get_transport_state_callback (Boolean *outIsPlaying, Boolean *outTransportStateChanged, Float64 *outCurrentSampleInTimeLine, Boolean *outIsCycling, Float64 *outCycleStartBeat, Float64 *outCycleEndBeat) |
int | create_parameter_listener (AUEventListenerProc callback, void *arg, float interval_secs) |
int | listen_to_parameter (uint32_t param_id) |
int | end_listen_to_parameter (uint32_t param_id) |
Public Member Functions inherited from ARDOUR::Plugin | |
Plugin (ARDOUR::AudioEngine &, ARDOUR::Session &) | |
Plugin (const Plugin &) | |
virtual | ~Plugin () |
XMLNode & | get_state () const |
virtual void | set_insert_id (PBD::ID id) |
virtual void | set_state_dir (const std::string &d="") |
void | set_insert (PlugInsertBase *pib, uint32_t num) |
PlugInsertBase * | plugin_insert () const |
uint32_t | plugin_number () const |
virtual std::string | get_docs () const |
virtual std::string | get_parameter_docs (uint32_t) const |
virtual std::string | parameter_label (uint32_t which) const |
virtual bool | print_parameter (uint32_t, std::string &) const |
virtual uint32_t | designated_bypass_port () |
virtual void | set_automation_control (uint32_t, std::shared_ptr< ARDOUR::AutomationControl >) |
virtual std::shared_ptr< ScalePoints > | get_scale_points (uint32_t) const |
samplecnt_t | signal_latency () const |
samplecnt_t | signal_tailtime () const |
virtual samplecnt_t | max_latency () const |
virtual bool | requires_fixed_sized_buffers () const |
virtual bool | inplace_broken () const |
virtual bool | connect_all_audio_outputs () const |
bool | write_immediate_event (Evoral::EventType event_type, size_t size, const uint8_t *buf) |
void | realtime_handle_transport_stopped () |
void | realtime_locate (bool) |
void | monitoring_changed () |
virtual void | add_slave (std::shared_ptr< Plugin >, bool realtime) |
virtual void | remove_slave (std::shared_ptr< Plugin >) |
virtual bool | has_inline_display () |
virtual bool | inline_display_in_gui () |
virtual Display_Image_Surface * | render_inline_display (uint32_t, uint32_t) |
virtual bool | has_midnam () |
virtual bool | read_midnam () |
virtual std::string | midnam_model () |
virtual bool | knows_bank_patch () |
virtual uint32_t | bank_patch (uint8_t chn) |
PresetRecord | save_preset (std::string name) |
void | remove_preset (std::string) |
void | clear_preset () |
const PresetRecord * | preset_by_label (const std::string &) |
const PresetRecord * | preset_by_uri (const std::string &) |
virtual std::vector< PresetRecord > | get_presets () |
PresetRecord | last_preset () const |
bool | parameter_changed_since_last_preset () const |
virtual int | first_user_preset_index () const |
PluginInfoPtr | get_info () const |
virtual void | set_owner (SessionObject *o) |
SessionObject * | owner () const |
void | set_cycles (uint32_t c) |
cycles_t | cycles () const |
void | use_for_impulse_analysis () |
ARDOUR::AudioEngine & | engine () const |
ARDOUR::Session & | session () const |
virtual const PropertyDescriptors & | get_supported_properties () const |
virtual const ParameterDescriptor & | get_property_descriptor (uint32_t id) const |
virtual void | set_property (uint32_t key, const Variant &value) |
virtual Variant | get_property_value (uint32_t) const |
virtual void | announce_property_values () |
Public Member Functions inherited from PBD::Stateful | |
Stateful () | |
virtual | ~Stateful () |
virtual bool | apply_change (PropertyBase const &) |
PropertyChange | apply_changes (PropertyList const &) |
const OwnedPropertyList & | properties () const |
void | add_property (PropertyBase &s) |
void | add_extra_xml (XMLNode &) |
XMLNode * | extra_xml (const std::string &str, bool add_if_missing=false) |
void | save_extra_xml (const XMLNode &) |
const PBD::ID & | id () const |
bool | set_id (const XMLNode &) |
void | set_id (const std::string &) |
void | reset_id () |
void | clear_changes () |
virtual void | clear_owned_changes () |
PropertyList * | get_changes_as_properties (PBD::Command *) const |
virtual void | rdiff (std::vector< PBD::Command * > &) const |
bool | changed () const |
virtual PropertyList * | property_factory (const XMLNode &) const |
virtual void | suspend_property_changes () |
virtual void | resume_property_changes () |
bool | property_changes_suspended () const |
Public Member Functions inherited from PBD::Destructible | |
virtual | ~Destructible () |
virtual void | drop_references () |
Public Member Functions inherited from ARDOUR::HasLatency | |
virtual | ~HasLatency () |
Public Member Functions inherited from ARDOUR::HasTailTime | |
virtual | ~HasTailTime () |
Protected Member Functions | |
std::string | do_save_preset (std::string name) |
void | do_remove_preset (std::string) |
Protected Member Functions inherited from ARDOUR::Plugin | |
virtual void | parameter_changed_externally (uint32_t which, float val) |
void | state_changed () |
Protected Member Functions inherited from PBD::Stateful | |
void | add_instant_xml (XMLNode &, const std::string &directory_path) |
XMLNode * | instant_xml (const std::string &str, const std::string &directory_path) |
void | add_properties (XMLNode &) const |
PropertyChange | set_values (XMLNode const &) |
virtual void | post_set (const PropertyChange &) |
virtual void | send_change (const PropertyChange &) |
virtual void | mid_thaw (const PropertyChange &) |
bool | regenerate_xml_or_string_ids () const |
Private Types | |
typedef std::map< std::string, std::string > | UserPresetMap |
typedef std::map< std::string, int > | FactoryPresetMap |
typedef std::map< uint32_t, uint32_t > | ParameterMap |
Private Member Functions | |
samplecnt_t | plugin_latency () const |
void | find_presets () |
int | set_stream_format (int scope, uint32_t bus, AudioStreamBasicDescription &) |
void | discover_parameters () |
void | add_state (XMLNode *) const |
void | init () |
void | discover_factory_presets () |
void | parameter_change_listener (void *, void *, const AudioUnitEvent *event, UInt64 host_time, Float32 new_value) |
Static Private Member Functions | |
static void | _parameter_change_listener (void *, void *, const AudioUnitEvent *event, UInt64 host_time, Float32 new_value) |
Definition at line 59 of file audio_unit.h.
|
private |
Definition at line 191 of file audio_unit.h.
|
private |
Definition at line 214 of file audio_unit.h.
|
private |
Definition at line 189 of file audio_unit.h.
ARDOUR::AUPlugin::AUPlugin | ( | AudioEngine & | engine, |
Session & | session, | ||
std::shared_ptr< CAComponent > | comp | ||
) |
ARDOUR::AUPlugin::AUPlugin | ( | const AUPlugin & | other | ) |
|
virtual |
|
staticprivate |
|
virtual |
Implements ARDOUR::Plugin.
|
privatevirtual |
Add state to an existing XMLNode
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
int ARDOUR::AUPlugin::create_parameter_listener | ( | AUEventListenerProc | callback, |
void * | arg, | ||
float | interval_secs | ||
) |
std::string ARDOUR::AUPlugin::current_preset | ( | ) | const |
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
private |
|
private |
|
protectedvirtual |
Do the actual removal of a preset of the provided name
Implements ARDOUR::Plugin.
|
protectedvirtual |
Do the actual saving of the current plugin settings to a preset of the provided name. Should return a URI on success, or an empty string on failure.
Implements ARDOUR::Plugin.
int ARDOUR::AUPlugin::end_listen_to_parameter | ( | uint32_t | param_id | ) |
|
privatevirtual |
Fill _presets with our presets
Implements ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
inline |
Definition at line 119 of file audio_unit.h.
OSStatus ARDOUR::AUPlugin::get_beat_and_tempo_callback | ( | Float64 * | outCurrentBeat, |
Float64 * | outCurrentTempo | ||
) |
|
inline |
Definition at line 120 of file audio_unit.h.
OSStatus ARDOUR::AUPlugin::get_musical_time_location_callback | ( | UInt32 * | outDeltaSampleOffsetToNextBeat, |
Float32 * | outTimeSig_Numerator, | ||
UInt32 * | outTimeSig_Denominator, | ||
Float64 * | outCurrentMeasureDownBeat | ||
) |
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
OSStatus ARDOUR::AUPlugin::get_transport_state_callback | ( | Boolean * | outIsPlaying, |
Boolean * | outTransportStateChanged, | ||
Float64 * | outCurrentSampleInTimeLine, | ||
Boolean * | outIsCycling, | ||
Float64 * | outCycleStartBeat, | ||
Float64 * | outCycleEndBeat | ||
) |
|
virtual |
Implements ARDOUR::Plugin.
|
private |
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
int ARDOUR::AUPlugin::listen_to_parameter | ( | uint32_t | param_id | ) |
|
virtual |
Set parameters using a preset
Reimplemented from ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 69 of file audio_unit.h.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 68 of file audio_unit.h.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
private |
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
virtual |
Implements ARDOUR::Plugin.
|
privatevirtual |
Implements ARDOUR::Plugin.
|
inlinevirtual |
Reimplemented from ARDOUR::Plugin.
Definition at line 75 of file audio_unit.h.
Reimplemented from ARDOUR::Plugin.
OSStatus ARDOUR::AUPlugin::render_callback | ( | AudioUnitRenderActionFlags * | ioActionFlags, |
const AudioTimeStamp * | inTimeStamp, | ||
UInt32 | inBusNumber, | ||
UInt32 | inNumberSamples, | ||
AudioBufferList * | ioData | ||
) |
bool ARDOUR::AUPlugin::requires_fixed_size_buffers | ( | ) | const |
|
virtual |
Implements ARDOUR::Plugin.
|
inline |
Definition at line 115 of file audio_unit.h.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
virtual |
Reimplemented from ARDOUR::Plugin.
|
private |
|
inlinevirtual |
Implements ARDOUR::Plugin.
Definition at line 92 of file audio_unit.h.
|
virtual |
Implements ARDOUR::Plugin.
|
private |
Definition at line 207 of file audio_unit.h.
|
private |
Definition at line 208 of file audio_unit.h.
|
mutableprivate |
Definition at line 174 of file audio_unit.h.
|
private |
Definition at line 177 of file audio_unit.h.
|
private |
Definition at line 178 of file audio_unit.h.
|
private |
Definition at line 173 of file audio_unit.h.
|
private |
Definition at line 179 of file audio_unit.h.
|
private |
Definition at line 224 of file audio_unit.h.
|
private |
Definition at line 225 of file audio_unit.h.
|
private |
Definition at line 175 of file audio_unit.h.
|
private |
Definition at line 176 of file audio_unit.h.
|
private |
Definition at line 204 of file audio_unit.h.
|
private |
Definition at line 205 of file audio_unit.h.
|
private |
Definition at line 206 of file audio_unit.h.
|
private |
Definition at line 218 of file audio_unit.h.
|
private |
Definition at line 165 of file audio_unit.h.
|
private |
Definition at line 201 of file audio_unit.h.
|
private |
Definition at line 202 of file audio_unit.h.
|
private |
Definition at line 223 of file audio_unit.h.
|
private |
Definition at line 192 of file audio_unit.h.
|
private |
Definition at line 194 of file audio_unit.h.
|
private |
Definition at line 168 of file audio_unit.h.
|
private |
Definition at line 219 of file audio_unit.h.
|
private |
Definition at line 170 of file audio_unit.h.
|
private |
Definition at line 196 of file audio_unit.h.
|
private |
Definition at line 220 of file audio_unit.h.
|
private |
Definition at line 216 of file audio_unit.h.
|
private |
Definition at line 217 of file audio_unit.h.
|
private |
Definition at line 172 of file audio_unit.h.
|
private |
Definition at line 232 of file audio_unit.h.
|
private |
Definition at line 171 of file audio_unit.h.
|
private |
Definition at line 195 of file audio_unit.h.
|
private |
Definition at line 215 of file audio_unit.h.
|
private |
Definition at line 233 of file audio_unit.h.
|
private |
Definition at line 169 of file audio_unit.h.
|
private |
Definition at line 221 of file audio_unit.h.
|
private |
Definition at line 230 of file audio_unit.h.
|
private |
Definition at line 231 of file audio_unit.h.
|
private |
Definition at line 166 of file audio_unit.h.
|
private |
Definition at line 190 of file audio_unit.h.
|
private |
Definition at line 198 of file audio_unit.h.
|
private |
Definition at line 199 of file audio_unit.h.