Struct hexodsp::NodeExecutor

source ·
pub struct NodeExecutor { /* private fields */ }
Expand description

Holds the complete allocation of nodes and the program. New Nodes or the program is not newly allocated in the audio backend, but it is copied from the input ring buffer. If this turns out to be too slow, we might have to push buffers of the program around.

Implementations

This is a convenience function used for testing the DSP graph output in automated tests for this crate.

The sample rate that is used to run the DSP code is 44100 Hz.

Relying on the behvaiour of this function for production code is not it’s intended usecase and changes might break your code.

  • realtime: If this is set, the function will sleep.

You can use it’s source as reference for your own audio DSP thread processing function.

This is a convenience function used for testing the DSP graph input and output in automated tests for this crate.

The sample rate that is used to run the DSP code is 44100 Hz.

Relying on the behvaiour of this function for production code is not it’s intended usecase and changes might break your code.

  • seconds: The number of seconds to run the DSP thread for.
  • realtime: If this is set, the function will sleep.

You can use it’s source as reference for your own audio DSP thread processing function.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.