pub struct RealtimeLibraryManager { /* private fields */ }Expand description
Main real-time library manager
Implementations§
Source§impl RealtimeLibraryManager
impl RealtimeLibraryManager
Sourcepub fn new(config: RealtimeConfig) -> Result<Self, Error>
pub fn new(config: RealtimeConfig) -> Result<Self, Error>
Create a new real-time library manager
Sourcepub fn initialize(&mut self) -> Result<(), Error>
pub fn initialize(&mut self) -> Result<(), Error>
Initialize the real-time processing system
Sourcepub fn process_realtime(&self, audio: &[f32]) -> Result<Vec<f32>, Error>
pub fn process_realtime(&self, audio: &[f32]) -> Result<Vec<f32>, Error>
Process audio in real-time
Sourcepub fn process_stream(
&self,
audio_stream: &[f32],
chunk_size: usize,
) -> Result<Vec<f32>, Error>
pub fn process_stream( &self, audio_stream: &[f32], chunk_size: usize, ) -> Result<Vec<f32>, Error>
Process audio stream in chunks
Sourcepub fn get_current_latency(&self) -> f32
pub fn get_current_latency(&self) -> f32
Get current latency measurement
Sourcepub fn get_stats(&self) -> RealtimeStats
pub fn get_stats(&self) -> RealtimeStats
Get processing statistics
Sourcepub fn get_active_backend(&self) -> Option<AudioBackend>
pub fn get_active_backend(&self) -> Option<AudioBackend>
Get active backend information
Sourcepub fn get_backend_capabilities(
&self,
backend: &AudioBackend,
) -> Option<BackendCapabilities>
pub fn get_backend_capabilities( &self, backend: &AudioBackend, ) -> Option<BackendCapabilities>
Get backend capabilities
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RealtimeLibraryManager
impl !RefUnwindSafe for RealtimeLibraryManager
impl Send for RealtimeLibraryManager
impl Sync for RealtimeLibraryManager
impl Unpin for RealtimeLibraryManager
impl UnsafeUnpin for RealtimeLibraryManager
impl !UnwindSafe for RealtimeLibraryManager
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