Merging
This commit is contained in:
@ -164,11 +164,11 @@ impl ELGate {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn next(&mut self, sample: f32) -> Option<f32> {
|
||||
pub fn next(&mut self, sample: f32) -> Option<bool> {
|
||||
Some(self.next_eye(sample)?.0) // Ignore eye
|
||||
}
|
||||
|
||||
pub fn next_eye(&mut self, sample: f32) -> Option<(f32, Vec<f32>)> {
|
||||
pub fn next_eye(&mut self, sample: f32) -> Option<(bool, Vec<f32>)> {
|
||||
self.buffer.push_front(sample);
|
||||
self.current_position += 1.;
|
||||
if self.current_position >= self.next_sample {
|
||||
|
||||
Reference in New Issue
Block a user