◆ AndroidAudioIODeviceType()
AndroidAudioIODeviceType::AndroidAudioIODeviceType |
( |
| ) |
|
|
inline |
◆ createDevice()
◆ getDefaultDeviceIndex()
int AndroidAudioIODeviceType::getDefaultDeviceIndex |
( |
bool |
forInput | ) |
const |
|
inlinevirtual |
Returns the name of the default device.
This will be one of the names from the getDeviceNames() list.
- Parameters
-
forInput | if true, this means that a default input device should be returned; if false, it should return the default output |
Implements AudioIODeviceType.
◆ getDeviceNames()
StringArray AndroidAudioIODeviceType::getDeviceNames |
( |
bool |
wantInputNames | ) |
const |
|
inlinevirtual |
Returns the list of available devices of this type.
The scanForDevices() method must have been called to create this list.
- Parameters
-
wantInputNames | only really used by DirectSound where devices are split up into inputs and outputs, this indicates whether to use the input or output name to refer to a pair of devices. |
Implements AudioIODeviceType.
◆ getIndexOfDevice()
int AndroidAudioIODeviceType::getIndexOfDevice |
( |
AudioIODevice * |
device, |
|
|
bool |
asInput |
|
) |
| const |
|
inlinevirtual |
Returns the index of a given device in the list of device names. If asInput is true, it shows the index in the inputs list, otherwise it looks for it in the outputs list.
Implements AudioIODeviceType.
◆ hasSeparateInputsAndOutputs()
bool AndroidAudioIODeviceType::hasSeparateInputsAndOutputs |
( |
| ) |
const |
|
inlinevirtual |
Returns true if two different devices can be used for the input and output.
Implements AudioIODeviceType.
◆ scanForDevices()
void AndroidAudioIODeviceType::scanForDevices |
( |
| ) |
|
|
inlinevirtual |
Refreshes the object's cached list of known devices.
This must be called at least once before calling getDeviceNames() or any of the other device creation methods.
Implements AudioIODeviceType.
The documentation for this class was generated from the following file: