pub struct CavaBuilder { /* private fields */ }Implementations§
Source§impl CavaBuilder
impl CavaBuilder
pub fn bars_per_channel(self, bars_per_channel: NonZeroUsize) -> Self
pub fn sample_rate(self, sample_rate: SampleRate) -> Self
pub fn audio_channels(self, audio_channels: Channels) -> Self
pub fn enable_autosens(self, enable_autosens: bool) -> Self
Sourcepub fn noise_reduction(self, noise_reduction: f64) -> Self
pub fn noise_reduction(self, noise_reduction: f64) -> Self
Adjust noise reduciton filters. Has to be within the range 0..=1.
The raw visualization is very noisy, this factor adjusts the integral
and gravity filters inside cavacore to keep the signal smooth:
1 will be very slow and smooth, 0 will be fast but noisy.
pub fn frequency_range(self, freq_range: Range<NonZeroU32>) -> Self
pub fn sanity_check(&self) -> Result<(), Vec<Error>>
Trait Implementations§
Source§impl Clone for CavaBuilder
impl Clone for CavaBuilder
Source§fn clone(&self) -> CavaBuilder
fn clone(&self) -> CavaBuilder
Returns a copy 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 CavaBuilder
impl Debug for CavaBuilder
Auto Trait Implementations§
impl Freeze for CavaBuilder
impl RefUnwindSafe for CavaBuilder
impl Send for CavaBuilder
impl Sync for CavaBuilder
impl Unpin for CavaBuilder
impl UnwindSafe for CavaBuilder
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