Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
exa04 committed May 31, 2024
1 parent 079dbeb commit c806574
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/visualizers/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ impl Default for VisualizersDemo {
params: Arc::new(DemoParams::default()),
oscilloscope_buffer: Arc::new(Mutex::new(WaveformBuffer::new(800, 5.0))),
peak_buffer: Arc::new(Mutex::new(PeakBuffer::new(800, 10.0, 50.))),
histogram_buffer: Arc::new(Mutex::new(HistogramBuffer::new(512, 1.0))),
histogram_buffer: Arc::new(Mutex::new(HistogramBuffer::new(256, 0.5))),
lissajous_buffer: Arc::new(Mutex::new(RingBuffer::new(2048))),

spectrum_input,
Expand Down
4 changes: 2 additions & 2 deletions src/utils/buffers/mod.rs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
pub mod histogram_buffer;
pub mod minima_buffer;
pub mod peak_buffer;
pub mod ring_buffer;
pub mod waveform_buffer;
pub mod histogram_buffer;

use std::ops::{Index, IndexMut};

pub use histogram_buffer::HistogramBuffer;
pub use minima_buffer::MinimaBuffer;
pub use peak_buffer::PeakBuffer;
pub use ring_buffer::RingBuffer;
pub use waveform_buffer::WaveformBuffer;
pub use histogram_buffer::HistogramBuffer;

pub trait VisualizerBuffer<T>: Index<usize> + IndexMut<usize> {
/// Enqueues an element.
Expand Down
4 changes: 2 additions & 2 deletions src/visualizers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
mod graph;
mod grid;
mod histogram;
mod lissajous;
mod meter;
mod oscilloscope;
mod spectrum_analyzer;
mod unit_ruler;
mod waveform;
mod histogram;

pub use graph::*;
pub use grid::*;
pub use histogram::*;
pub use lissajous::*;
pub use meter::*;
pub use oscilloscope::*;
pub use spectrum_analyzer::*;
pub use unit_ruler::*;
pub use waveform::*;
pub use histogram::*;

use super::utils::ValueScaling;
use nih_plug_vizia::vizia::binding::Res;
Expand Down

0 comments on commit c806574

Please sign in to comment.