- java.lang.Object
-
- com.tagtraum.audioplayer4j.device.DefaultAudioDevice
-
- All Implemented Interfaces:
AudioDevice
public class DefaultAudioDevice extends Object implements AudioDevice
Default AudioDevice.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AudioDevicegetInstance()LinegetLine(Line.Info info)Get a line from this device using the givenLine.Info.MixergetMixer()Obtain aMixerfrom this device.StringgetName()Device name.inthashCode()booleanisDefault()Is this the system's default device?StringtoString()
-
-
-
Method Detail
-
getInstance
public static AudioDevice getInstance()
-
getName
public String getName()
Description copied from interface:AudioDeviceDevice name.- Specified by:
getNamein interfaceAudioDevice- Returns:
- name
-
isDefault
public boolean isDefault()
Description copied from interface:AudioDeviceIs this the system's default device?- Specified by:
isDefaultin interfaceAudioDevice- Returns:
- true or false
-
getMixer
public Mixer getMixer()
Description copied from interface:AudioDeviceObtain aMixerfrom this device.- Specified by:
getMixerin interfaceAudioDevice- Returns:
- mixer
-
getLine
public Line getLine(Line.Info info) throws LineUnavailableException
Description copied from interface:AudioDeviceGet a line from this device using the givenLine.Info.- Specified by:
getLinein interfaceAudioDevice- Parameters:
info- info, describing what's desired- Returns:
- line
- Throws:
LineUnavailableException- if a matching line is not available due to resource restrictions
-
-