Create a device.
To open the device, use open.
// ignore: avoid_positional_boolean_parameters AudioDevice(this.sdl, this.index, this.isCapture);