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 voidclose()closes the device, freeing its resources.intgetALCError()ReturnALC.alcGetError(ALCdevice)ALCdevicegetALDevice()Returns the OpenALALCdevice.StringgetName()Returns the device name.booleanisDebugAvail()Returns whether `ALC_EXT_debug` is available for this device.booleanisValid()Returns whethergetALDevice()is open and valid, i.e.booleanopen()Opens the device if not yet openedStringtoString()
-
-
-
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().
-
isDebugAvail
public boolean isDebugAvail()
Returns whether `ALC_EXT_debug` is available for this device.This context may or may not be current.
- See Also:
Context.isDebugAvail()
-
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.
-
-