Add Buffer component
This commit is contained in:
parent
a341491bf8
commit
a0948315be
1 changed files with 16 additions and 0 deletions
|
|
@ -123,3 +123,19 @@ impl From<Peg> for ComponentBuilder<'static> {
|
|||
peg.build()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct Buffer {
|
||||
_private: (),
|
||||
}
|
||||
|
||||
impl Buffer {
|
||||
pub fn new() -> Self {
|
||||
Self { _private: () }
|
||||
}
|
||||
|
||||
pub fn build(self) -> ComponentBuilder<'static> {
|
||||
ComponentBuilder::new("MHG.Buffer_WithOutput")
|
||||
.num_inputs(1)
|
||||
.num_outputs(1)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue