pub struct PlatformManager { /* private fields */ }Expand description
Supports pass-through, shared PipeWire graph mixing, and cross-backend software mixing.
Steady-state read_into uses no heap allocations; the output pool shares the storage budget.
Implementations§
Source§impl PlatformManager
impl PlatformManager
pub fn budget(&self) -> &StorageBudget
pub fn topology_controller(&self) -> Option<&PlatformTopologyController>
Trait Implementations§
Source§impl CaptureManagerBackend for PlatformManager
impl CaptureManagerBackend for PlatformManager
fn open_with_options( request: CaptureRequest, overflow: Overflow, timing: TimingRequirement, ) -> Result<Self, CapabilityError>
fn plan(&self) -> &CapturePlanReport
fn selected_backend(&self) -> BackendId
fn is_software_mix(&self) -> bool
fn working_format(&self) -> Option<&Arc<Format>>
fn output_format(&self) -> Option<&Arc<Format>>
fn targets(&self) -> &[CaptureTarget]
fn input_handles(&self) -> &[InputStatusHandle]
fn membership_descriptor(&self) -> Option<MembershipDescriptor>
fn last_block_metadata(&self) -> Option<MixedBlockMetadata>
fn session_id(&self) -> u64
fn segment_id(&self) -> u64
fn on_format_change(&self) -> OnFormatChange
fn route_guard(&self) -> Option<&RouteRollbackGuard>
fn update_targets( &mut self, new_targets: Vec<CaptureTarget>, ) -> Result<u64, CapabilityError>
fn notify_default_device_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>
fn notify_default_input_changed( &mut self, new_device_id: Option<&str>, ) -> Result<bool, CapabilityError>
fn reopen_relaunched_target( &mut self, target_index: usize, new_pid: u32, ) -> Result<(), CapabilityError>
fn default_cancel(&self) -> Cancellation
fn read_with_cancel( &mut self, frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>
fn read_into_with_cancel( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, cancel: Cancellation, ) -> Result<ReadResult, ReadError>
fn stop(&mut self, mode: Stop)
fn wait_cleanup(&mut self, timeout: Duration) -> bool
fn resources_done(&self) -> bool
fn open(request: CaptureRequest) -> Result<Self, CapabilityError>
fn open_single(target: CaptureTarget) -> Result<Self, CapabilityError>
fn read( &mut self, frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>
fn read_into( &mut self, destination: &mut [u8], frames: usize, timeout: Duration, ) -> Result<ReadResult, ReadError>
Source§impl Drop for PlatformManager
impl Drop for PlatformManager
Auto Trait Implementations§
impl !Freeze for PlatformManager
impl !RefUnwindSafe for PlatformManager
impl !UnwindSafe for PlatformManager
impl Send for PlatformManager
impl Sync for PlatformManager
impl Unpin for PlatformManager
impl UnsafeUnpin for PlatformManager
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