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§
sourcefn get_plugin_id(&self) -> i32
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
sourcefn idle(&self)
fn idle(&self)
An idle call.
This is useful when the plugin is doing something such as mouse tracking in the UI.
sourcefn get_info(&self) -> (isize, String, String)
fn get_info(&self) -> (isize, String, String)
Get vendor and product information.
Returns a tuple in the form of (version, vendor_name, product_name)
.
sourcefn process_events(&self, events: &Events)
fn process_events(&self, events: &Events)
Handle incoming events from the plugin.
sourcefn get_time_info(&self, mask: i32) -> Option<TimeInfo>
fn get_time_info(&self, mask: i32) -> Option<TimeInfo>
Get time information.
sourcefn get_block_size(&self) -> isize
fn get_block_size(&self) -> isize
Get block size.