Audio Manager.

Inheritance diagram for AudioManager:

Public Member Functions

List< AudioPortgetAudioPorts ()
 Gets audio ports. More...
 
List< AudioConnectiongetAudioConnections ()
 Gets audio connection. More...
 
AudioPort createUserAudioPort (String name, AudioPortType type) throws AudioNotAvailableException, AudioLowLevelException
 Creates an user audio port. More...
 
void removeUserAudioPort (AudioPort userPort) throws AudioNotAvailableException, AudioLowLevelException
 Removes an user audio port. More...
 
List< AudioConfigurationgetAudioConfiguration () throws AudioNotAvailableException, AudioLowLevelException
 Gets the Audio default configuration. More...
 
void setAudioConfiguration (int value, ConfigurationType configuration) throws AudioNotAvailableException, AudioLowLevelException
 Sets the default audio configuration. More...
 
void close ()
 
- Public Member Functions inherited from Manager
String getIp ()
 
String getName ()
 
Boolean isAlive ()
 
void subscribe (ManagerObserver observer) throws CannotSubscribeException
 
void unSubscribe (ManagerObserver observer) throws ObserverNotSubscribedException
 
- Public Member Functions inherited from Subject< T extends Observer< U, U extends Event >
void subscribe (T observer) throws CannotSubscribeException
 
void unSubscribe (T observer) throws ObserverNotSubscribedException
 

Public Attributes

final int MAX_PRIORITY_VALUE = 100
 
final int MIN_PRIORITY_VALUE = 0
 
final int DEFAULT_PRIORITY_VALUE = 0
 
final int DEFAULT_VOLUME = -1
 
final int DEFAULT_GAIN = -1
 

Member Function Documentation

void close ( )

Closes the audio manager. Recommended to finish properly

AudioPort createUserAudioPort ( String  name,
AudioPortType  type 
) throws AudioNotAvailableException, AudioLowLevelException
Returns
Audio port
Exceptions
AudioNotAvailableException
AudioLowLevelException
List<AudioConfiguration> getAudioConfiguration ( ) throws AudioNotAvailableException, AudioLowLevelException
Returns
Audio default configurations
Exceptions
AudioNotAvailableException
AudioLowLevelException
List<AudioConnection> getAudioConnections ( )
Returns
Audio connection list
Exceptions
AudioNotAvailableException
AudioLowLevelException
List<AudioPort> getAudioPorts ( )
Returns
Audio port list
void removeUserAudioPort ( AudioPort  userPort) throws AudioNotAvailableException, AudioLowLevelException
Parameters
userPortport to be removed
Returns
Audio port
Exceptions
AudioNotAvailableException
AudioLowLevelException
void setAudioConfiguration ( int  value,
ConfigurationType  configuration 
) throws AudioNotAvailableException, AudioLowLevelException
Parameters
valueConfiguration to be set as default
configurationConfiguration to be set as default
Exceptions
AudioNotAvailableException
AudioLowLevelException