MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / empty

Method empty

crates/firewheel-core/src/dsp/buffer.rs:23–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22impl<T: Clone + Copy + Default, const CHANNELS: usize> ConstSequentialBuffer<T, CHANNELS> {
23 pub const fn empty() -> Self {
24 assert!(CHANNELS > 0);
25
26 Self {
27 buffer: Vec::new(),
28 num_frames: 0,
29 }
30 }
31
32 pub fn new(frames: usize) -> Self {
33 assert!(CHANNELS > 0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected