Creates an OutputStream specific to the given driver/device, with the requested parameters, then returns it. Or null in case of an error, then it also sets errCode to a given error code. Might also set a separate error code variable, depending on the OS/backend.
Sets the device's audio specifications to the closest possible specifications.
Returns the number of input channels this device has, or zero if there's none, or -1 if it's enforced at audio spec request. NOTE: Depending on the backend, devices' inputs and outputs (or even different inputs and outputs) might show up as different devices.
Returns the number of output channels this device has, or zero if there's none, or -1 if it's enforced at audio spec request. NOTE: Depending on the backend, devices' inputs and outputs (or even different inputs and outputs) might show up as different devices.
Returns the range of sample rates that this audio device supports. Might return null if it's enforced at audio spec request. NOTE: It is not guaranteed, that at all sample ranges, all formats will be available.
Returns the currently set audio specifications.
Returns the range of audio formats that this audio device supports. Might return null if it's enforced at audio spec request. NOTE: It is not guaranteed, that at all sample ranges, all formats will be available.
Number of input channels, or zero if there's none.
Number of output channels, or zero if there's none.
Stores either all supported sample rates, or two values of lowest and highest supported sample rates if any value can be set without stepping. NOTE: It is not guaranteed, that at all sample ranges, all formats will be available.
Tells whether the device is in shared or exclusive mode. In some cases, this can be set, in others it's either shared or exclusive.
The audio specifications set and available to this device.
Stores supported formats.
Called when device is disconnected.
The last error code if there's any, or 0. Shall not be set externally, although should not impede on operation.
Implements a universal interface to an audio device. Each driver inherits from this.