Skip to main content

Module capture

Module capture 

Source
Expand description

The take’s own sample buffer: what a host’s pushed frames grow, and what the segmenter cuts windows off.

Re-exports§

use std::sync::Mutex; 🔒
use std::sync::atomic::AtomicBool; 🔒
use std::sync::atomic::AtomicU32; 🔒
use std::sync::atomic::Ordering; 🔒
use std::time::Duration; 🔒
use crate::audio::SAMPLE_RATE; 🔒

Structs§

Recording 🔒
What the recording thread and the handle share.

Constants§

CAP_CEILING 🔒
One hour of audio, the point past which reserving the cap costs more than any dictation could use.

Functions§

sample_cap 🔒
The cap in samples. Integer maths so it cannot be a truncating float cast.