pub struct HostRuntime {
pub mapping: ShmMapping,
pub events: EventPair,
pub format: String,
pub plugin_path: String,
pub instance_id: String,
}Expand description
Runtime state for the plugin-host process.
Fields§
§mapping: ShmMapping§events: EventPair§format: String§plugin_path: String§instance_id: StringImplementations§
Source§impl HostRuntime
impl HostRuntime
Sourcepub fn attach(
shm_name: &str,
events: EventPair,
format: String,
plugin_path: String,
instance_id: String,
) -> Result<Self, String>
pub fn attach( shm_name: &str, events: EventPair, format: String, plugin_path: String, instance_id: String, ) -> Result<Self, String>
Attach to an existing shared-memory segment and event pipes.
Sourcepub fn signal_ready(&self)
pub fn signal_ready(&self)
Signal readiness to the DAW.
Sourcepub fn write_test_magic(&self)
pub fn write_test_magic(&self)
Write a test magic number into the scratch area.
Sourcepub fn run_until_shutdown(&self)
pub fn run_until_shutdown(&self)
Blocking wait until the DAW requests shutdown or a fatal signal arrives. Uses the event pipe to sleep instead of burning CPU.
Sourcepub fn run_null_plugin(&self)
pub fn run_null_plugin(&self)
Run the dummy null plugin: copy input audio channels to output channels. Blocks on the event pipe for each block, then signals completion.
Sourcepub fn run_clap_plugin(&self)
pub fn run_clap_plugin(&self)
Run a CLAP plugin inside the host process, marshalling audio via shared memory.
Auto Trait Implementations§
impl Freeze for HostRuntime
impl RefUnwindSafe for HostRuntime
impl Send for HostRuntime
impl Sync for HostRuntime
impl Unpin for HostRuntime
impl UnsafeUnpin for HostRuntime
impl UnwindSafe for HostRuntime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more