#import <CSAudioInterface.h>
Inherits <NSObject>.
Inherited by CSAudioInterfaceIOS.
Create an Audio File Player.
- Parameters
-
- Returns
- CSAudioFilePlayer to control audio playback.
| - (int) getTelephonyEventPayloadType |
|
|
|
Get the telephony event payload type.
- Returns
- payload type set for telephony events.
| - (BOOL) isBluetoothActive |
|
|
|
| - (BOOL) isBluetoothConnected |
|
|
|
| - (BOOL) isHeadsetConnected |
|
|
|
| - (BOOL) isSpeakerConnected |
|
|
|
Get the microphone audio gain.
- Returns
- The current audio gain [0, 255].
| - (BOOL) mute: |
|
(BOOL) |
mute |
|
Set the muted state of the audio.
- Parameters
-
| mute | The new mute state of the audio. |
- Returns
- YES for success, NO for failure.
| - (BOOL) muteSpeaker: |
|
(BOOL) |
mute |
|
Set the muted state of the speaker.
- Parameters
-
| mute | The new mute state of the speaker. |
- Returns
- YES for success, NO for failure.
| - (BOOL) setDscp: |
|
(int) |
dscpValue |
|
This function sets DSCP value for audio.
- Parameters
-
| dscpValue | DSCP value must be in range 0-63. |
- Returns
- YES if DSCP value is set, otherwise NO.
| - (BOOL) setMicrophoneGain: |
|
(int) |
gain |
|
Set the microphone audio gain.
- Parameters
-
| gain | The new audio gain [0, 255]. |
- Returns
- YES for success, NO for failure.
| - (BOOL) setSpeakerGain: |
|
(int) |
gain |
|
Set the speaker audio gain.
- Parameters
-
| gain | The new audio gain [0, 255]. |
- Returns
- YES for success, NO for failure.
| - (BOOL) setTelephonyEventPayloadType: |
|
(int) |
payloadType |
|
Sets the dynamic payload type for telephony events.
- Parameters
-
| payloadType | The new payloadType for telephony events. |
- Returns
- true if the input value is accepted because it is between 96-127; false is returned when the input value is not accepted.
Get the speaker audio gain.
- Returns
- The current audio gain [0, 255].
| - (NSArray* availableRecordDevices) __deprecated |
|
readnonatomicassign |
Array of (AudioDevice*) available Microphone devices.
| - (NSArray* availablePlayDevices) __deprecated |
|
readnonatomicassign |
Array of (AudioDevice*) available Playout devices.
| - (NSArray* availableAudioDevices) __deprecated |
|
readnonatomicassign |
Current muted state of the audio.
Current muted state of the speaker.
The documentation for this protocol was generated from the following file: