JS API Reference ICreateDeviceParameters interface

ICreateDeviceParameters interface

Interface describing the parameters passed to createDevice() when attempting to create a new Device

Signature

export interface ICreateDeviceParameters 

Properties

context

Type: AudioContext

The AudioContext to be used by the Device

options

Type: IDeviceOptions

Optional options object to pass on to the Device, see IDeviceOptions

patcher

Type: IPatcher

The exported patcher to use in creating the Device

type

Type: "auto" | DeviceType

Optional type defining the DeviceType (AudioWorklet or ScriptProcessor) to create. The default value "auto" lets createDevice() pick the correct type based on the support of the current environment.