#import <CSAudioInterface.h>
Inherits <NSObject>.
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.
This fuctions sets audio mute listener.
- Parameters
-
- Returns
- YES on success
- (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) setMicrophoneAudioLevelListener: |
|
(id< CSLevelListener >) |
pListener |
|
This function sets microphone audio level listener.
Audio level will be returned in range [0, 100]
- Parameters
-
- Returns
- YES on success
- (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].
Current muted state of the audio.
- (NSArray*) availablePlayDevices |
|
readnonatomicassign |
Array of (AudioDevice*) available Playout devices.
- (NSArray*) availableRecordDevices |
|
readnonatomicassign |
Array of (AudioDevice*) available Microphone devices.
Current muted state of the speaker.
The documentation for this protocol was generated from the following file: