AudioDevice.requestSpecs

Sets the device's audio specifications to the closest possible specifications.

class AudioDevice
abstract
AudioSpecs
requestSpecs
(
AudioSpecs reqSpecs
,
int flags = 0
)

Parameters

reqSpecs AudioSpecs

The requested audio secifications. Can be set AudioSpecs.init if don't care.

flags int

Tells the function what specifications are must or can be compromised.

Return Value

Type: AudioSpecs

The actual audio specs, or AudioSpecs.init in case of failure. In case of a failure, errCode is also set with the corresponding flags.

Meta