LV2_Descriptor.run

Run a plugin instance for a block.

Note that if an activate() function exists then it must be called before run(). If deactivate() is called for a plugin instance then run() may not be called until activate() has been called again.

If the plugin has the feature lv2:hardRTCapable then there are various things that the plugin MUST NOT do within the run() function (see lv2core.ttl for details).

As a special case, when sample_count is 0, the plugin should update any output ports that represent a single instant in time (e.g. control ports, but not audio ports). This is particularly useful for latent plugins, which should update their latency output port so hosts can pre-roll plugins to compute latency. Plugins MUST NOT crash when sample_count is 0.

@param instance Instance to be run.

@param sample_count The block size (in samples) for which the plugin instance must run.

struct LV2_Descriptor
extern (C) nothrow @nogc
void function(LV2_Handle instance, uint32_t sample_count) run;

Meta