Package: android.hardware.audio@2.0

IDevicesFactory

interface IDevicesFactory

Properties

Result

typedef android.hardware.audio@2.0::Result Result

Device

enum Device: int32_t
Details
Members
PRIMARY
A2DP
USB
R_SUBMIX
STUB

Methods

openDevice

openDevice (Device device)
generates (Result retval, IDevice result)

Opens an audio device.To close the device, it is necessary to release references to the returned device object.

Details
Parameters
device
device type.
Generates
retval
operation completion status.Returns INVALID_ARGUMENTS if there is no corresponding hardware module found, NOT_INITIALIZED if an error occured while opening the hardware module.
result
the interface for the created device.