pub struct WavReplayCapture { /* private fields */ }Implementations§
Source§impl WavReplayCapture
impl WavReplayCapture
pub fn new( spool_dir: impl Into<PathBuf>, maximum_duration: Duration, wav_path: &Path, pace: ReplayPace, ) -> Result<Self, CaptureError>
Trait Implementations§
Source§impl AudioCapture for WavReplayCapture
impl AudioCapture for WavReplayCapture
Source§fn start(
&self,
_mode: RecordingMode,
stop: StopSignal,
) -> Result<RecordingReader, CaptureError>
fn start( &self, _mode: RecordingMode, stop: StopSignal, ) -> Result<RecordingReader, CaptureError>
Replays the WAV into a new recording. A Realtime replay ends early
when stop fires. mode is ignored: a fixed file has no silence to
stop on.
Auto Trait Implementations§
impl Freeze for WavReplayCapture
impl RefUnwindSafe for WavReplayCapture
impl Send for WavReplayCapture
impl Sync for WavReplayCapture
impl Unpin for WavReplayCapture
impl UnsafeUnpin for WavReplayCapture
impl UnwindSafe for WavReplayCapture
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