pub struct ReverbPlugin { /* private fields */ }Expand description
Example reverb plugin implementation
Implementations§
Source§impl ReverbPlugin
impl ReverbPlugin
Trait Implementations§
Source§impl Debug for ReverbPlugin
impl Debug for ReverbPlugin
Source§impl Default for ReverbPlugin
impl Default for ReverbPlugin
Source§impl SpatialPlugin for ReverbPlugin
impl SpatialPlugin for ReverbPlugin
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get the plugin description
Get the plugin author
Source§fn capabilities(&self) -> PluginCapabilities
fn capabilities(&self) -> PluginCapabilities
Get the plugin capabilities
Source§fn initialize<'life0, 'async_trait>(
&'life0 mut self,
config: PluginConfig,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn initialize<'life0, 'async_trait>(
&'life0 mut self,
config: PluginConfig,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Initialize the plugin
Source§fn process_audio<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio: &'life1 [f32],
listener_position: Position3D,
source_position: Position3D,
context: &'life2 ProcessingContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<f32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn process_audio<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio: &'life1 [f32],
listener_position: Position3D,
source_position: Position3D,
context: &'life2 ProcessingContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<f32>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Process audio with spatial effects
Source§fn update_parameters<'life0, 'async_trait>(
&'life0 mut self,
parameters: PluginParameters,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn update_parameters<'life0, 'async_trait>(
&'life0 mut self,
parameters: PluginParameters,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Update plugin parameters
Source§fn get_state(&self) -> PluginState
fn get_state(&self) -> PluginState
Get current plugin state
Source§fn cleanup<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn cleanup<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Cleanup plugin resources
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Cast to mutable Any for downcasting
Source§fn process_binaural<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio: &'life1 BinauraAudio,
context: &'life2 ProcessingContext,
) -> Pin<Box<dyn Future<Output = Result<BinauraAudio>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn process_binaural<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
audio: &'life1 BinauraAudio,
context: &'life2 ProcessingContext,
) -> Pin<Box<dyn Future<Output = Result<BinauraAudio>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Process binaural audio
Auto Trait Implementations§
impl Freeze for ReverbPlugin
impl RefUnwindSafe for ReverbPlugin
impl Send for ReverbPlugin
impl Sync for ReverbPlugin
impl Unpin for ReverbPlugin
impl UnsafeUnpin for ReverbPlugin
impl UnwindSafe for ReverbPlugin
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