|
LISNR Radius Android SDK 2.0.0
|
Class used to specify different audio system settings. More...
Classes | |
| enum | AudioApi |
| Enum specifying the audio api types. More... | |
| enum | ContentType |
| Enum specifying content types. This attribute only has an effect on Android API 28+. More... | |
| enum | Direction |
| Enum specifying the directionality types. More... | |
| enum | InputPreset |
| Enum specifying input preset types. This attribute only has an effect on Android API 28+. More... | |
| enum | PerformanceMode |
| Enum specifying the performance mode types. More... | |
| enum | SharingMode |
| Enum specifying the sharing mode types. More... | |
| enum | Usage |
| Enum specifying usage types. More... | |
Public Member Functions | |
| StreamBuilder (Context context, Direction direction) | |
| Constructor for StreamBuilder object. More... | |
| Direction | getDirection () |
| Gets the directionality of the stream. More... | |
| int | getChannelCount () |
| Gets the channel count of the stream. More... | |
| void | setAudioApi (AudioApi audioApi) |
| Set the underlying audio library of the stream. More... | |
| AudioApi | getAudioApi () |
| Gets the underlying audio library of the stream. More... | |
| void | setSharingMode (SharingMode mode) |
| Sets the SharingMode of the stream. More... | |
| SharingMode | getSharingMode () |
| Gets the SharingMode of the stream. More... | |
| void | setPerformanceMode (PerformanceMode mode) |
| Sets the PerformanceMode of the stream. More... | |
| PerformanceMode | getPerformanceMode () |
| Gets the PerformanceMode of the stream. More... | |
| void | setUsage (Usage usage) |
| Sets the Usage of the stream. More... | |
| Usage | getUsage () |
| Gets the Usage of the stream. More... | |
| void | setContentType (ContentType type) |
| Sets the ContentType of the stream. More... | |
| ContentType | getContentType () |
| Gets the ContentType of the stream. More... | |
| void | setInputPreset (InputPreset preset) |
| Sets the InputPreset of the stream. More... | |
| InputPreset | getInputPreset () |
| Gets the InputPreset of the stream. More... | |
| int | getDeviceId () |
| Get the audio device ID for the stream. More... | |
| void | setDeviceId (int deviceId) |
| Sets the audio device ID for the stream. More... | |
| void | setNumInputChannels (int channelCount) |
| Sets the number of input channels for the stream. More... | |
| void | setAudioOutStream (int audioManagerStream) |
| Sets the audio output stream. More... | |
| int | getAudioOutStream () |
| Gets the audio output stream of the stream. More... | |
| void | setAudioFocusRequestType (int audioFocusRequestType) throws InvalidArgumentException |
| int | getAudioFocusRequestType () |
Class used to specify different audio system settings.
|
inline |
Constructor for StreamBuilder object.
Constructor for the StreamBuilder object. A newly constructed StreamBuilder object will contain LISNR recommended default values, which vary by device. The default values can be seen by using the corresponding get function, e.g. getDeviceId(), prior to calling any set function, e.g. setDeviceID() (see Audio System Configuration Audio System Configuration).
| context | Context for the StreamBuilder (must be non-null) |
| direction | Direction for the StreamBuilder (must be non-null) |
|
inline |
Gets the underlying audio library of the stream.
Get the underlying audio library being requested.
|
inline |
Get the AudioFocus request type that will be used by the audio system.
|
inline |
Gets the audio output stream of the stream.
Get the audio output stream configured for the stream.
|
inline |
Gets the channel count of the stream.
Get the channel count of the stream being built.
|
inline |
Gets the ContentType of the stream.
Get the ContentType configured for the stream.
|
inline |
Get the audio device ID for the stream.
|
inline |
Gets the directionality of the stream.
Get the directionality of the stream being built.
|
inline |
Gets the InputPreset of the stream.
Get the InputPreset configured for the stream.
|
inline |
Gets the PerformanceMode of the stream.
Get the PerformanceMode configured for this stream.
|
inline |
Gets the SharingMode of the stream.
Get the SharingMode configured for this stream.
|
inline |
Gets the Usage of the stream.
Get the Usage configured for this stream.
|
inline |
Set the underlying audio library of the stream.
Set the underlying audio library used by the SDK.
| audioApi | - Requested AudioApi |
|
inline |
Sets the AudioFocus request type to be used when the AudioSystem is in output or duplex mode. This option is only used for output streams. Setting this to AudioManager.AUDIOFOCUS_NONE prevents the AudioManager.requestAudioFocus call from occurring automatically when the audio system is in output or duplex mode.
The Default value for this is AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE.
| audioFocusRequestType | request type to be used. Valid options are: AudioManager.AUDIOFOCUS_GAIN, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK and AudioManager.AUDIOFOCUS_NONE |
| InvalidArgumentException | if an invalid request type is provided |
|
inline |
Sets the audio output stream.
Set the audio output stream used for volume control and sampling rate determination.
| audioManagerStream | - Identifier for an AudioManager stream constant (see android.media.AudioManager for values) |
|
inline |
Sets the ContentType of the stream.
Set the ContentType for the stream.
| type | The requested ContentType |
|
inline |
Sets the audio device ID for the stream.
Request a stream to a specific audio input/output device given an audio device ID.
| deviceId | The deviceId of the requested audio device |
|
inline |
Sets the InputPreset of the stream.
Set the InputPreset for the stream.
| preset | The requested InputPreset |
|
inline |
Sets the number of input channels for the stream.
Set the number of input channels for the stream. This setting should be the same as the number of microphones the target device has on the requested deviceId.
| channelCount | The requested channel count, 1 by default |
|
inline |
Sets the PerformanceMode of the stream.
Set the PerformanceMode for the stream.
| mode | The requested PerformanceMode |
|
inline |
Sets the SharingMode of the stream.
Set the SharingMode for the stream.
| mode | The requested SharingMode |
|
inline |