Public Member Functions | |
void | initialize (SpeakerArrangement busses) override |
Inlet (const ProcessorSetup &psetup, AudioChain *audiochain) | |
void | render (uint n_frames) override |
void | reset (uint64 target_stamp) override |
![]() | |
void | adjust_all_params () |
AtomicBits::Iter | atomic_bits_iter (size_t pos=0) const |
BusInfo | bus_info (IBusId busid) const |
BusInfo | bus_info (OBusId busid) const |
bool | check_dirty (Id32 paramid) const |
void | connect_event_input (AudioProcessor &oproc) |
bool | connected (OBusId obusid) const |
String | debug_name () const |
void | disconnect_event_input () |
void | enable_engine_output (bool onoff) |
AudioEngine & | engine () const |
IBusId | find_ibus (const String &name) const |
OBusId | find_obus (const String &name) const |
MaybeParamId | find_param (const String &identifier) const |
DeviceP | get_device () const |
double | get_normalized (Id32 paramid) |
double | get_param (Id32 paramid) |
bool | has_event_input () const |
bool | has_event_output () const |
const float * | ifloats (IBusId b, uint c) const |
double | inyquist () const |
bool | is_initialized () const |
uint | n_ibuses () const |
uint | n_ichannels (IBusId busid) const |
uint | n_obuses () const |
uint | n_ochannels (OBusId busid) const |
float | note_to_freq (int note) const |
double | nyquist () const |
const float * | ofloats (OBusId b, uint c) const |
MinMax | param_range (Id32 paramid) const |
virtual double | param_value_from_text (uint32_t paramid, const String &text) const |
virtual String | param_value_to_text (uint32_t paramid, double value) const |
ParameterC | parameter (Id32 paramid) const |
uint | sample_rate () const |
bool | send_param (Id32 paramid, double value) |
bool | set_normalized (Id32 paramid, double normalized) |
String | text_param_from_quark (uint32_t paramid, uint vint) |
uint | text_param_to_quark (uint32_t paramid, const String &text) |
const AudioTransport & | transport () const |
virtual double | value_from_normalized (Id32 paramid, double normalized) const |
virtual double | value_to_normalized (Id32 paramid, double value) const |
![]() | |
void | operator delete (void *ptr, std::size_t sz) |
void | operator delete (void *ptr, std::size_t sz, std::align_val_t al) |
void | operator delete[] (void *ptr, std::size_t sz) |
void | operator delete[] (void *ptr, std::size_t sz, std::align_val_t al) |
void * | operator new (std::size_t sz) |
void * | operator new (std::size_t sz, std::align_val_t al) |
void * | operator new[] (std::size_t sz) |
void * | operator new[] (std::size_t sz, std::align_val_t al) |
Additional Inherited Members | |
![]() | |
using | MakeDeviceP = std::function< DeviceP(const String &, StaticInfo, AudioProcessorP)> |
using | MakeProcessor = AudioProcessorP(*)(AudioEngine &) |
using | MakeProcessorP = AudioProcessorP(*)(CString, AudioEngine &) |
using | MaybeParamId = std::pair< ParamId, bool > |
using | StaticInfo = void(*)(AudioProcessorInfo &) |
![]() | |
template<class AudioProc , class ... Args> | |
static std::shared_ptr< AudioProc > | create_processor (AudioEngine &engine, const Args &...args) |
static double | param_peek_mt (const AudioProcessorP proc, Id32 paramid) |
static void | registry_add (CString aseid, StaticInfo, MakeProcessorP) |
static DeviceP | registry_create (CString aseid, AudioEngine &engine, const MakeDeviceP &) |
static void | registry_foreach (const std::function< void(const String &aseid, StaticInfo)> &fun) |
static uint64 | timestamp () |
![]() | |
static const String | GUIONLY |
static const String | STANDARD |
static const String | STORAGEONLY |
![]() | |
enum | { INITIALIZED , SCHEDULED , PARAMCHANGE , BUSCONNECT , BUSDISCONNECT , INSERTION , REMOVAL , ENGINE_OUTPUT } |
using | MidiEventInput = MidiEventReader< 2 > |
using | MinMax = std::pair< double, double > |
![]() | |
IBusId | add_input_bus (CString uilabel, SpeakerArrangement speakerarrangement, const String &hints="", const String &blurb="") |
OBusId | add_output_bus (CString uilabel, SpeakerArrangement speakerarrangement, const String &hints="", const String &blurb="") |
virtual void | adjust_param (uint32_t paramid) |
void | apply_event (const MidiEvent &event) |
void | apply_input_events () |
void | assign_oblock (OBusId b, uint c, float val) |
bool | atomic_bit_notify (size_t nth) |
void | atomic_bits_resize (size_t count) |
AudioProcessor (const ProcessorSetup &) | |
void | connect (IBusId ibus, AudioProcessor &oproc, OBusId obus) |
void | disconnect (IBusId ibus) |
void | disconnect_ibuses () |
void | disconnect_obuses () |
void | enotify_enqueue_mt (uint32 pushmask) |
void | install_params (const AudioParams::Map ¶ms) |
IOBus & | iobus (IBusId busid) |
const IOBus & | iobus (IBusId busid) const |
IOBus & | iobus (OBusId busid) |
const IOBus & | iobus (OBusId busid) const |
MidiEventInput | midi_event_input () |
MidiEventOutput & | midi_event_output () |
float * | oblock (OBusId b, uint c) |
double | peek_param_mt (Id32 paramid) const |
void | prepare_event_input () |
void | prepare_event_output () |
void | redirect_oblock (OBusId b, uint c, const float *block) |
void | remove_all_buses () |
void | reschedule () |
virtual uint | schedule_children () |
uint | schedule_processor () |
virtual | ~AudioProcessor () |
![]() | |
static uint | schedule_processor (AudioProcessor &p) |
![]() | |
CString | aseid_ |
AudioEngine & | engine_ |
std::atomic< uint32 > | flags_ |
Inlet | ( | const ProcessorSetup & | psetup, |
AudioChain * | audiochain | ||
) |
|
overridevirtual |
Reset all state variables.
Implements AudioProcessor.
|
overridevirtual |
Mandatory method to setup parameters and I/O busses. See add_param(), add_input_bus() / add_output_bus(). This method will be called once per instance after construction.
Implements AudioProcessor.
|
overridevirtual |
Method called for every audio buffer to be processed. Each connected output bus needs to be filled with `n_frames`, i.e. `n_frames` many floating point samples per channel. Using the AudioSignal::OBusId (see add_output_bus()), the floating point sample buffers can be addressed via the BusConfig structure as: `bus[obusid].channel[nth].buffer`, see FloatBuffer for further details. The AudioSignal::IBusId (see add_input_bus()) can be used correspondingly to retrieve input channel values.
Implements AudioProcessor.