Struct ssloc::DelayAndSum
source · pub struct DelayAndSum {
pub speed_of_sound: F,
pub filter: Option<usize>,
pub mics: Vec<Position>,
}
Expand description
Uses a Delay-and-Sum Beamformer to extract a single channel.
Fields§
§speed_of_sound: F
§filter: Option<usize>
Number of samples used for interpolating between samples audio data.
mics: Vec<Position>
Implementations§
source§impl DelayAndSum
impl DelayAndSum
sourcepub fn expected_len(&self, audio: &Audio) -> usize
pub fn expected_len(&self, audio: &Audio) -> usize
Returns the expected audio length produced by delay and sum, if filter is enabled, it will remove a few frames at the start and end of the audio.
Trait Implementations§
source§impl Clone for DelayAndSum
impl Clone for DelayAndSum
source§fn clone(&self) -> DelayAndSum
fn clone(&self) -> DelayAndSum
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 DelayAndSum
impl Debug for DelayAndSum
source§impl Default for DelayAndSum
impl Default for DelayAndSum
source§impl PartialEq<DelayAndSum> for DelayAndSum
impl PartialEq<DelayAndSum> for DelayAndSum
source§fn eq(&self, other: &DelayAndSum) -> bool
fn eq(&self, other: &DelayAndSum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DelayAndSum
Auto Trait Implementations§
impl RefUnwindSafe for DelayAndSum
impl Send for DelayAndSum
impl Sync for DelayAndSum
impl Unpin for DelayAndSum
impl UnwindSafe for DelayAndSum
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
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.