create_engine_with_options

Function create_engine_with_options 

Source
pub fn create_engine_with_options(
    options: EngineOptions,
) -> (Box<dyn Context>, Box<dyn AudioProcess + Send>)
Expand description

Create an audio engine with custom 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.