pub struct SyncConfig {
pub audio_format: AudioFormat,
pub audio_frequency_hz: f32,
pub video_width: u32,
pub video_height: u32,
pub video_framerate: u32,
pub audio_chunk_frames: u64,
pub duration: MediaDuration,
}Expand description
Tunable parameters for one harness run.
Fields§
§audio_format: AudioFormatAudio sample rate + channel count.
audio_frequency_hz: f32Sine frequency emitted by the audio test source.
video_width: u32Video frame dimensions.
video_height: u32Video frame dimensions.
video_framerate: u32Video framerate (fps).
audio_chunk_frames: u64Per-chunk audio frame count (e.g. 4_800 = 100 ms at 48 kHz).
duration: MediaDurationTotal wall-clock duration to capture.
Implementations§
Source§impl SyncConfig
impl SyncConfig
Sourcepub fn deterministic_1s() -> Self
pub fn deterministic_1s() -> Self
Default deterministic harness: 48 kHz mono audio + 64×36 30 fps video for 1 second.
Trait Implementations§
Source§impl Clone for SyncConfig
impl Clone for SyncConfig
Source§fn clone(&self) -> SyncConfig
fn clone(&self) -> SyncConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SyncConfig
impl Debug for SyncConfig
impl Copy for SyncConfig
Auto Trait Implementations§
impl Freeze for SyncConfig
impl RefUnwindSafe for SyncConfig
impl Send for SyncConfig
impl Sync for SyncConfig
impl Unpin for SyncConfig
impl UnsafeUnpin for SyncConfig
impl UnwindSafe for SyncConfig
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