Trait easyjack::MetadataHandler
[−]
[src]
pub trait MetadataHandler { fn callbacks_of_interest(&self) -> Vec<MetadataHandlers>; fn sample_rate_changed(&mut self, srate: NumFrames) -> i32 { ... } fn on_port_connect(
&mut self,
a: PortId,
b: PortId,
status: PortConnectStatus
) { ... } }
This trait defines the callbacks which may be delivered to the metadata thread
Required Methods
fn callbacks_of_interest(&self) -> Vec<MetadataHandlers>
Function must return all the types of callbacks it wishes to be given
Provided Methods
fn sample_rate_changed(&mut self, srate: NumFrames) -> i32
Called when the sample rate is changed
fn on_port_connect(&mut self, a: PortId, b: PortId, status: PortConnectStatus)
Called when ports are connected