Skip to main content

Interface IPolyAudioService

com.poly.polyos.audio

Interface IPolyAudioService


public interface IPolyAudioService

Audio service exposed for PolyOS Clients

Since:
3.0.11

Method Summary

Modifier and TypeMethod and Description
intgetVolume()
Returns current output volume level
booleanisMicrophoneMuted()
Returns whether microphone is muted
booleanisMicrophoneReady()
Check whether the microphone is ready after a system reboot
booleanmuteMicrophone(boolean mute)
Mutes or unmutes the microphone
voidregisterAudioListener(IPolyAudioListener listener)
Registers a IPolyAudioListener to get callbacks
voidsetVolume(int volume)
Sets the output volume level
voidunRegisterAudioListener(IPolyAudioListener listener)
Unregisters an IPolyAudioListener to get callbacks

Method Detail

muteMicrophone

boolean muteMicrophone(boolean mute)
Mute or unmute the microphone

isMicrophoneMuted

boolean isMicrophoneMuted()
Returns whether the microphone is muted

isMicrophoneReady

boolean isMicrophoneReady()
Checks whether the microphone is ready after a system reboot

registerAudioListener

void registerAudioListener(IPolyAudioListener listener)
Registers an IPolyAudioListener to get callbacks

unRegisterAudioListener

void unRegisterAudioListener(IPolyAudioListener listener)
Unregisters a IPolyAudioListener to get callbacks

getVolume

int getVolume()
Returns current output volume level

Since:
3.3.0.0-4

setVolume

void setVolume(int volume)
Sets the output volume level

Since:
3.3.0.0-4