Package com.jogamp.openal.sound3d
Class Device
- java.lang.Object
-
- com.jogamp.openal.sound3d.Device
-
public final class Device extends Object
This class provides a handle to a specific audio device.- Author:
- Athomas Goldberg, Sven Gothel, et al.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
closes the device, freeing its resources.int
getALCError()
ReturnALC.alcGetError(ALCdevice)
ALCdevice
getALDevice()
Returns the OpenALALCdevice
.String
getName()
Returns the device name.boolean
isValid()
Returns whethergetALDevice()
is open and valid, i.e.boolean
open()
Opens the device if not yet openedString
toString()
-
-
-
Method Detail
-
getName
public String getName()
Returns the device name.
-
getALCError
public int getALCError()
ReturnALC.alcGetError(ALCdevice)
-
isValid
public boolean isValid()
Returns whethergetALDevice()
is open and valid, i.e. not null, e.g. notclose()
.
-
open
public boolean open()
Opens the device if not yet opened- Returns:
- true if already open or newly opened
- See Also:
isValid()
,Object.clone()
-
close
public void close()
closes the device, freeing its resources.
-
-