pub trait Host {
    // Provided methods
    fn automate(&self, index: i32, value: f32) { ... }
    fn get_plugin_id(&self) -> i32 { ... }
    fn idle(&self) { ... }
    fn get_info(&self) -> (isize, String, String) { ... }
    fn process_events(&self, events: &Events) { ... }
    fn get_time_info(&self, mask: i32) -> Option<TimeInfo> { ... }
    fn get_block_size(&self) -> isize { ... }
}
Expand description

Implemented by all VST hosts.

Provided Methods§

source

fn automate(&self, index: i32, value: f32)

Automate a parameter; the value has been changed.

source

fn get_plugin_id(&self) -> i32

Get the plugin ID of the currently loading plugin.

This is only useful for shell plugins where this value will change the plugin returned. TODO: implement shell plugins

source

fn idle(&self)

An idle call.

This is useful when the plugin is doing something such as mouse tracking in the UI.

source

fn get_info(&self) -> (isize, String, String)

Get vendor and product information.

Returns a tuple in the form of (version, vendor_name, product_name).

source

fn process_events(&self, events: &Events)

Handle incoming events from the plugin.

source

fn get_time_info(&self, mask: i32) -> Option<TimeInfo>

Get time information.

source

fn get_block_size(&self) -> isize

Get block size.

Implementors§