AudioEngine
constructor(context: Context, sampleRate: Int? = null, micInputPreset: MicInputPreset? = null, performanceMode: PerformanceMode? = null, outputUsage: OutputUsage? = null, microphoneEnabled: Boolean? = null, outputEnabled: Boolean? = null)
Creates an AudioEngine class
Parameters
context
application context
sampleRate
sample rate of the input/output streams
micInputPreset
preset for the microphone input stream
performanceMode
preset for performance mode, which determines both input/output stream latency
outputUsage
preset for the usage type of output streams
microphoneEnabled
enable input streams
outputEnabled
enable output streams
Parameters
context
application context
config
config of the audio engine. See AudioEngineConfig for description of the parameters