pub struct GraphSettings {
pub name: String,
pub num_inputs: usize,
pub max_node_inputs: usize,
pub num_outputs: usize,
pub block_size: usize,
pub num_nodes: usize,
pub sample_rate: Sample,
pub oversampling: Oversampling,
pub ring_buffer_size: usize,
}Expand description
Pass to Graph::new to set the options the Graph is created with in an ergonomic and clear way.
Fields§
§name: StringThe name of the Graph
num_inputs: usizeThe number of inputs to the Graph
max_node_inputs: usizeThe maximum number of inputs to a Node contained in the Graph
num_outputs: usizeThe number of outputs from the Graph
block_size: usizeThe block size this Graph uses for processing.
num_nodes: usizeThe maximum number of nodes that can be added to the graph.
sample_rate: SampleThe sample rate this Graph uses for processing.
oversampling: OversamplingThe oversampling factor
ring_buffer_size: usizeThe number of messages that can be sent through any of the ring buffers. Ring buffers are used pass information back and forth between the audio thread (GraphGen) and the Graph.
Implementations§
Source§impl GraphSettings
impl GraphSettings
Sourcepub fn num_inputs(self, num_inputs: usize) -> Self
pub fn num_inputs(self, num_inputs: usize) -> Self
Set the num_inputs to a new value
Sourcepub fn num_outputs(self, num_outputs: usize) -> Self
pub fn num_outputs(self, num_outputs: usize) -> Self
Set the num_outputs to a new value
Sourcepub fn oversampling(self, oversampling: Oversampling) -> Self
pub fn oversampling(self, oversampling: Oversampling) -> Self
Set the oversampling to a new value
Sourcepub fn block_size(self, block_size: usize) -> Self
pub fn block_size(self, block_size: usize) -> Self
Set the oversampling to a new value
Trait Implementations§
Source§impl Clone for GraphSettings
impl Clone for GraphSettings
Source§fn clone(&self) -> GraphSettings
fn clone(&self) -> GraphSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphSettings
impl Debug for GraphSettings
Auto Trait Implementations§
impl Freeze for GraphSettings
impl RefUnwindSafe for GraphSettings
impl Send for GraphSettings
impl Sync for GraphSettings
impl Unpin for GraphSettings
impl UnwindSafe for GraphSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.