Starts synchronous block interface

This commit is contained in:
2026-03-19 15:28:31 +01:00
parent f727c119b8
commit 2baee8d28b
11 changed files with 348 additions and 260 deletions

View File

@ -20,10 +20,12 @@ use oxydsp_dsp::units::DigitalFrequency;
use oxydsp_flowgraph::BlockIO;
use oxydsp_flowgraph::block::Block;
use oxydsp_flowgraph::block::BlockResult;
use oxydsp_flowgraph::edge::In;
use oxydsp_flowgraph::edge::PopIterable;
use oxydsp_flowgraph::block::SyncBlockIO;
use oxydsp_flowgraph::flowgraph;
use oxydsp_flowgraph::graph::FlowGraph;
use oxydsp_flowgraph::io::In;
use oxydsp_flowgraph::io::PopIterable;
use oxydsp_flowgraph::sync_block;
#[derive(BlockIO)]
pub struct Printer<T: 'static>
@ -34,6 +36,15 @@ pub struct Printer<T: 'static>
n: usize,
}
impl<T: 'static> SyncBlockIO for Printer<T>
{
type StateView = u32;
type Input = T;
type Output = T;
}
impl<T: 'static> Printer<T>
{
pub fn new(input: In<T>) -> Self