pub struct WavReplayCapture { /* private fields */ }Available on non-
target_family=wasm only.Implementations§
Source§impl WavReplayCapture
impl WavReplayCapture
Sourcepub fn new(
spool_dir: impl Into<PathBuf>,
maximum_duration: Duration,
wav_path: &Path,
pace: ReplayPace,
) -> Result<Self, CaptureError>
pub fn new( spool_dir: impl Into<PathBuf>, maximum_duration: Duration, wav_path: &Path, pace: ReplayPace, ) -> Result<Self, CaptureError>
spool_dir should be a directory only your user can read: the
spool holds the replayed audio.
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: replay runs no voice-activity
detection.
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