public class AudioInterfaceWrapper
extends java.lang.Object
implements com.avaya.clientservices.media.AudioInterface
| Constructor and Description |
|---|
AudioInterfaceWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAudioDeviceListener(com.avaya.clientservices.media.AudioDeviceListener listener)
Add a new listener to be informed when audio devices are added and removed
or audio state changes.
|
com.avaya.clientservices.media.audio.AudioCapturer |
createAudioCapturer(com.avaya.clientservices.media.audio.AudioCapturerConfig cfg,
com.avaya.clientservices.media.audio.AudioStreamListener callback)
This function creates AudioCapturer object, which provides audio capture control capability.
|
com.avaya.clientservices.media.AudioFilePlayer |
createAudioFilePlayer(android.content.Context context,
com.avaya.clientservices.media.AudioFilePlayerListener pAudioFilePlayerListener)
Create an Audio File Player.
|
com.avaya.clientservices.media.audio.AudioMixer |
createAudioMixer(com.avaya.clientservices.media.audio.AudioMixerConfig cfg)
This function creates AudioMixer object, which provides audio mixing capability.
|
com.avaya.clientservices.media.AudioDevice |
getActiveDevice() |
java.util.List<com.avaya.clientservices.media.AudioDeviceListener> |
getAudioDeviceListeners() |
com.avaya.clientservices.media.AudioInterface |
getAudioInterface()
Returns the Audio Interface instance.
|
com.avaya.clientservices.media.AutomaticGainControlConfiguration |
getAutomaticGainControlConfiguration()
Gets the Automatic Gain Control configuration.
|
com.avaya.clientservices.media.AutomaticGainControlMode |
getAutomaticGainControlMode()
Gets the Automatic Gain Control mode.
|
java.util.List<com.avaya.clientservices.media.AudioDevice> |
getDevices() |
com.avaya.clientservices.media.EchoCancellationMobileMode |
getEchoCancellationMobileMode()
Gets the Mobile Echo Cancellation mode.
|
com.avaya.clientservices.media.EchoCancellationMode |
getEchoCancellationMode()
Gets the Echo Cancellation mode.
|
com.avaya.clientservices.media.AudioMode |
getMode() |
com.avaya.clientservices.media.NoiseSuppressionMode |
getNoiseSuppressionMode()
Gets the Noise Suppression mode.
|
com.avaya.clientservices.media.AudioDevice |
getUserRequestedDevice() |
boolean |
isMuted()
This function gets's the current mute status for all audio calls
|
boolean |
isSpeakerMuted()
This function gets's the current mute status for speaker
|
boolean |
isYieldBluetoothOnPhoneCall()
Get flag to auto-yield bluetooth on phone call (incoming or outgoing)
|
boolean |
mute(boolean mute)
This function set's mute status for all audio calls
|
boolean |
muteSpeaker(boolean mute)
This function set's mute status for speaker
|
void |
registerRecordPlayStatusListener(com.avaya.clientservices.media.AudioRecordPlayStatusListener listener)
Sets a listener that wants to track playback and recording status.
|
void |
removeAudioDeviceListener(com.avaya.clientservices.media.AudioDeviceListener listener)
Remove an existing listener informing when audio device are added and removed.
|
void |
setAudioDeviceSelectionListener(AudioDeviceSelectionChangeListener audioDeviceSelectionListener) |
void |
setAudioInterface(com.avaya.clientservices.media.AudioInterface audioInterface)
This function sets a new Audio Interface.
|
boolean |
setAutomaticGainControlConfiguration(com.avaya.clientservices.media.AutomaticGainControlConfiguration config)
Sets the Automatic Gain Control configuration.
|
boolean |
setAutomaticGainControlMode(com.avaya.clientservices.media.AutomaticGainControlMode mode)
Sets the Automatic Gain Control mode.
|
boolean |
setDscp(int dscpValue)
This function sets DSCP value for audio.
|
boolean |
setEchoCancellationMobileMode(com.avaya.clientservices.media.EchoCancellationMobileMode mode)
Sets the Echo Cancellation Mobile mode.
|
boolean |
setEchoCancellationMode(com.avaya.clientservices.media.EchoCancellationMode mode)
Sets the Echo Cancellation mode.
|
void |
setMode(com.avaya.clientservices.media.AudioMode mode)
setMode will immediatly set the mode using AudioManager.setMode().
|
boolean |
setNoiseSuppressionMode(com.avaya.clientservices.media.NoiseSuppressionMode mode)
Sets the Noise Suppression mode.
|
boolean |
setUserRequestedDevice(com.avaya.clientservices.media.AudioDevice device)
User preferred audio device.
|
boolean |
setYieldBluetoothOnPhoneCall(boolean yieldBluetoothOnPhoneCall)
Set flag to auto-yield bluetooth on phone call (incoming or outgoing)
|
boolean |
yieldBluetooth()
yield bluetooth
|
public void setMode(com.avaya.clientservices.media.AudioMode mode)
setMode in interface com.avaya.clientservices.media.AudioInterfacemode - Audio mode for the media engine to use.public com.avaya.clientservices.media.AudioMode getMode()
getMode in interface com.avaya.clientservices.media.AudioInterfacepublic java.util.List<com.avaya.clientservices.media.AudioDevice> getDevices()
getDevices in interface com.avaya.clientservices.media.AudioInterfacepublic com.avaya.clientservices.media.AudioDevice getActiveDevice()
getActiveDevice in interface com.avaya.clientservices.media.AudioInterfacepublic com.avaya.clientservices.media.AudioDevice getUserRequestedDevice()
getUserRequestedDevice in interface com.avaya.clientservices.media.AudioInterfacepublic boolean setUserRequestedDevice(com.avaya.clientservices.media.AudioDevice device)
setUserRequestedDevice in interface com.avaya.clientservices.media.AudioInterfacedevice - Selected devicepublic boolean yieldBluetooth()
yieldBluetooth in interface com.avaya.clientservices.media.AudioInterfacetrue if successful; false, otherwise.public boolean setYieldBluetoothOnPhoneCall(boolean yieldBluetoothOnPhoneCall)
setYieldBluetoothOnPhoneCall in interface com.avaya.clientservices.media.AudioInterfaceyieldBluetoothOnPhoneCall - The new yield statustrue if successful; false, otherwise.public boolean isYieldBluetoothOnPhoneCall()
isYieldBluetoothOnPhoneCall in interface com.avaya.clientservices.media.AudioInterfacetrue if currently yielding; false, otherwise.public boolean mute(boolean mute)
mute in interface com.avaya.clientservices.media.AudioInterfacemute - The new mute statuspublic boolean isMuted()
isMuted in interface com.avaya.clientservices.media.AudioInterfacepublic boolean muteSpeaker(boolean mute)
muteSpeaker in interface com.avaya.clientservices.media.AudioInterfacemute - The new mute statuspublic boolean isSpeakerMuted()
isSpeakerMuted in interface com.avaya.clientservices.media.AudioInterfacepublic com.avaya.clientservices.media.AudioFilePlayer createAudioFilePlayer(android.content.Context context,
com.avaya.clientservices.media.AudioFilePlayerListener pAudioFilePlayerListener)
createAudioFilePlayer in interface com.avaya.clientservices.media.AudioInterfacecontext - Caller's contextpAudioFilePlayerListener - AudioFilePlayerListener for start/stop events.public void registerRecordPlayStatusListener(com.avaya.clientservices.media.AudioRecordPlayStatusListener listener)
registerRecordPlayStatusListener in interface com.avaya.clientservices.media.AudioInterfacelistener - Listener instance.public void addAudioDeviceListener(com.avaya.clientservices.media.AudioDeviceListener listener)
addAudioDeviceListener in interface com.avaya.clientservices.media.AudioInterfacelistener - The new listener.public void removeAudioDeviceListener(com.avaya.clientservices.media.AudioDeviceListener listener)
removeAudioDeviceListener in interface com.avaya.clientservices.media.AudioInterfacelistener - The listener to be removed.public boolean setEchoCancellationMode(com.avaya.clientservices.media.EchoCancellationMode mode)
setEchoCancellationMode in interface com.avaya.clientservices.media.AudioInterfacemode - EchoCancellationModepublic com.avaya.clientservices.media.EchoCancellationMode getEchoCancellationMode()
getEchoCancellationMode in interface com.avaya.clientservices.media.AudioInterfacepublic boolean setEchoCancellationMobileMode(com.avaya.clientservices.media.EchoCancellationMobileMode mode)
setEchoCancellationMobileMode in interface com.avaya.clientservices.media.AudioInterfacemode - EchoCancellationMobileModepublic com.avaya.clientservices.media.EchoCancellationMobileMode getEchoCancellationMobileMode()
getEchoCancellationMobileMode in interface com.avaya.clientservices.media.AudioInterfacepublic boolean setNoiseSuppressionMode(com.avaya.clientservices.media.NoiseSuppressionMode mode)
setNoiseSuppressionMode in interface com.avaya.clientservices.media.AudioInterfacemode - NoiseSuppressionModepublic com.avaya.clientservices.media.NoiseSuppressionMode getNoiseSuppressionMode()
getNoiseSuppressionMode in interface com.avaya.clientservices.media.AudioInterfacepublic boolean setAutomaticGainControlMode(com.avaya.clientservices.media.AutomaticGainControlMode mode)
setAutomaticGainControlMode in interface com.avaya.clientservices.media.AudioInterfacemode - AutomaticGainControlModepublic com.avaya.clientservices.media.AutomaticGainControlMode getAutomaticGainControlMode()
getAutomaticGainControlMode in interface com.avaya.clientservices.media.AudioInterfacepublic boolean setAutomaticGainControlConfiguration(com.avaya.clientservices.media.AutomaticGainControlConfiguration config)
setAutomaticGainControlConfiguration in interface com.avaya.clientservices.media.AudioInterfaceconfig - AutomaticGainControlConfiguration objectpublic com.avaya.clientservices.media.AutomaticGainControlConfiguration getAutomaticGainControlConfiguration()
getAutomaticGainControlConfiguration in interface com.avaya.clientservices.media.AudioInterfacepublic boolean setDscp(int dscpValue)
setDscp in interface com.avaya.clientservices.media.AudioInterfacedscpValue - DSCP value must be in range 0-63.public com.avaya.clientservices.media.audio.AudioCapturer createAudioCapturer(com.avaya.clientservices.media.audio.AudioCapturerConfig cfg,
com.avaya.clientservices.media.audio.AudioStreamListener callback)
throws com.avaya.clientservices.media.audio.AudioCapturerException
createAudioCapturer in interface com.avaya.clientservices.media.AudioInterfacecfg - Configuration for audio capturingcallback - A callback object, which will receive an incoming audio streamcom.avaya.clientservices.media.audio.AudioCapturerException - when fails to initialize AudioCapturer, refer to logs for more informationpublic com.avaya.clientservices.media.audio.AudioMixer createAudioMixer(com.avaya.clientservices.media.audio.AudioMixerConfig cfg)
throws com.avaya.clientservices.media.audio.AudioMixerException
createAudioMixer in interface com.avaya.clientservices.media.AudioInterfacecfg - Configuration for audio mixingcom.avaya.clientservices.media.audio.AudioMixerException - when fails to initialize AudioMixer, refer to logs for more informationpublic void setAudioInterface(com.avaya.clientservices.media.AudioInterface audioInterface)
audioInterface - the AudioInterface object.public com.avaya.clientservices.media.AudioInterface getAudioInterface()
AudioInterface instance.public void setAudioDeviceSelectionListener(AudioDeviceSelectionChangeListener audioDeviceSelectionListener)
public java.util.List<com.avaya.clientservices.media.AudioDeviceListener> getAudioDeviceListeners()