pub struct AudioRecording {
pub sample_rate: u32,
pub bits_per_sample: u16,
pub channels: u16,
pub data_length: u32,
pub duration_secs: f64,
}Expand description
Metadata extracted from a TH-D75 audio recording WAV file.
Contains only the header information — PCM sample data is not loaded or decoded.
Fields§
§sample_rate: u32Sample rate in Hz. Expected: 16000 for TH-D75.
bits_per_sample: u16Bits per sample. Expected: 16 for TH-D75.
channels: u16Number of audio channels. Expected: 1 (mono) for TH-D75.
data_length: u32Size of the raw PCM data section in bytes.
duration_secs: f64Calculated recording duration in seconds.
Computed as data_length / (sample_rate * channels * bits_per_sample / 8).
Trait Implementations§
Source§impl Clone for AudioRecording
impl Clone for AudioRecording
Source§fn clone(&self) -> AudioRecording
fn clone(&self) -> AudioRecording
Returns a duplicate of the value. Read more
1.0.0 · 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 AudioRecording
impl Debug for AudioRecording
Source§impl PartialEq for AudioRecording
impl PartialEq for AudioRecording
impl StructuralPartialEq for AudioRecording
Auto Trait Implementations§
impl Freeze for AudioRecording
impl RefUnwindSafe for AudioRecording
impl Send for AudioRecording
impl Sync for AudioRecording
impl Unpin for AudioRecording
impl UnwindSafe for AudioRecording
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