pub struct PluginManager { /* private fields */ }Expand description
Plugin manager for loading and managing spatial audio plugins
Implementations§
Source§impl PluginManager
impl PluginManager
Sourcepub async fn register_plugin(
&self,
plugin: Box<dyn SpatialPlugin>,
config: PluginConfig,
) -> Result<()>
pub async fn register_plugin( &self, plugin: Box<dyn SpatialPlugin>, config: PluginConfig, ) -> Result<()>
Register a plugin
Sourcepub async fn unregister_plugin(&self, name: &str) -> Result<()>
pub async fn unregister_plugin(&self, name: &str) -> Result<()>
Unregister a plugin
Sourcepub fn get_plugin_names(&self) -> Vec<String>
pub fn get_plugin_names(&self) -> Vec<String>
Get plugin names
Sourcepub fn has_plugin(&self, name: &str) -> bool
pub fn has_plugin(&self, name: &str) -> bool
Check if plugin exists
Sourcepub async fn process_with_plugin(
&self,
plugin_name: &str,
audio: &[f32],
listener_position: Position3D,
source_position: Position3D,
context: &ProcessingContext,
) -> Result<Vec<f32>>
pub async fn process_with_plugin( &self, plugin_name: &str, audio: &[f32], listener_position: Position3D, source_position: Position3D, context: &ProcessingContext, ) -> Result<Vec<f32>>
Process audio through a specific plugin
Sourcepub async fn process_with_chain(
&self,
chain_name: &str,
audio: &[f32],
listener_position: Position3D,
source_position: Position3D,
context: &ProcessingContext,
) -> Result<Vec<f32>>
pub async fn process_with_chain( &self, chain_name: &str, audio: &[f32], listener_position: Position3D, source_position: Position3D, context: &ProcessingContext, ) -> Result<Vec<f32>>
Process audio through a processing chain
Sourcepub async fn create_chain(
&self,
name: &str,
plugin_names: Vec<String>,
) -> Result<()>
pub async fn create_chain( &self, name: &str, plugin_names: Vec<String>, ) -> Result<()>
Create a processing chain
Sourcepub async fn remove_chain(&self, name: &str) -> Result<()>
pub async fn remove_chain(&self, name: &str) -> Result<()>
Remove a processing chain
Sourcepub fn get_plugin_capabilities(&self, name: &str) -> Option<PluginCapabilities>
pub fn get_plugin_capabilities(&self, name: &str) -> Option<PluginCapabilities>
Get plugin capabilities
Sourcepub async fn update_plugin_parameters(
&self,
plugin_name: &str,
parameters: PluginParameters,
) -> Result<()>
pub async fn update_plugin_parameters( &self, plugin_name: &str, parameters: PluginParameters, ) -> Result<()>
Update plugin parameters
Trait Implementations§
Source§impl Debug for PluginManager
impl Debug for PluginManager
Auto Trait Implementations§
impl Freeze for PluginManager
impl RefUnwindSafe for PluginManager
impl Send for PluginManager
impl Sync for PluginManager
impl Unpin for PluginManager
impl UnsafeUnpin for PluginManager
impl UnwindSafe for PluginManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more