create_engine

Function create_engine 

Source
pub fn create_engine() -> (Box<dyn Context>, Box<dyn AudioProcess + Send>)
Expand description

Create an engine with the default options

This returns a pair:

  • The Context is the root context. This will be required to create most nodes and should be kept in scope for the lifetime of the application

  • The AudioProcess is used to generate audio. This might be passed to a different thread if used in a realtime context, or it might be kept in the main thread if used offline.