pub struct AvSyncCapture<'a> { /* private fields */ }Expand description
Synchronization access lent by AvSync::split.
The view borrows only the synchronizer, so a KVM session can hold the
independently lent receiver while this continues matching audio to video.
Creating or copying it allocates nothing and makes no SDK call. Like a
shared &AvSync, it is neither Send nor Sync: overlapping native
synchronizations are not documented as safe. Borrowed results retain the
synchronizer’s borrow even when this view is dropped.
Implementations§
Source§impl<'a> AvSyncCapture<'a>
impl<'a> AvSyncCapture<'a>
Sourcepub fn synchronize(
&self,
video: AvSyncVideo<'_>,
request: AvSyncRequest,
) -> Result<AvSyncOutcome>
pub fn synchronize( &self, video: AvSyncVideo<'_>, request: AvSyncRequest, ) -> Result<AvSyncOutcome>
Match audio to video; see AvSync::synchronize for timing,
allocation costs, format changes and no-audio results.
§Errors
As for AvSync::synchronize.
Sourcepub fn synchronize_ref(
&self,
video: AvSyncVideo<'_>,
request: AvSyncRequest,
) -> Result<AvSyncOutcomeRef<'a>>
pub fn synchronize_ref( &self, video: AvSyncVideo<'_>, request: AvSyncRequest, ) -> Result<AvSyncOutcomeRef<'a>>
Borrow matched audio; see AvSync::synchronize_ref for ownership,
timing and errors. The result borrows the synchronizer itself.
Sourcepub fn queued_audio(&self, request: AvSyncRequest) -> Result<AvSyncOutcome>
pub fn queued_audio(&self, request: AvSyncRequest) -> Result<AvSyncOutcome>
Sourcepub fn queued_audio_ref(
&self,
request: AvSyncRequest,
) -> Result<AvSyncOutcomeRef<'a>>
pub fn queued_audio_ref( &self, request: AvSyncRequest, ) -> Result<AvSyncOutcomeRef<'a>>
Borrow queued audio; see AvSync::queued_audio_ref.