35package com.jogamp.openal.sound3d;
37import com.jogamp.openal.*;
38import com.jogamp.openal.util.ALHelpers;
55 public Device(
final String deviceName) {
56 this.name = deviceName;
73 public boolean isValid() {
return null != alDev; }
95 if(
null != alDev &&
null == name ) {
106 if(
null != alDev ) {
114 final String alStr =
null != alDev ?
"0x"+Integer.toHexString(alDev.hashCode()) :
"null";
115 return "ALDevice[this 0x"+Integer.toHexString(hashCode())+
", name '"+name+
"', alDev "+alStr+
"]";
The AudioSystem3D class provides a set of methods for creating and manipulating a 3D audio environmen...
This class provides a handle to a specific audio device.
int getALCError()
Return ALC#alcGetError(ALCdevice).
boolean isDebugAvail()
Returns whether ALC_EXT_debug is available for this device.
String getName()
Returns the device name.
void close()
closes the device, freeing its resources.
ALCdevice getALDevice()
Returns the OpenAL ALCdevice.
Device(final String deviceName)
Create a new device by open()'ing the named audio device.
boolean open()
Opens the device if not yet opened.
boolean isValid()
Returns whether getALDevice() is open and valid, i.e.
static final String ALC_EXT_debug
static final int ALC_DEVICE_SPECIFIER
Define "ALC_DEVICE_SPECIFIER" with expression '0x1005', CType: int.
int alcGetError(ALCdevice device)
Entry point (through function pointer) to C language function: ALCenum alcGetError(ALCdevice * dev...
String alcGetString(ALCdevice device, int param)
Entry point (through function pointer) to C language function: const ALCchar * alcGetString(ALCdevi...
boolean alcCloseDevice(ALCdevice device)
Entry point (through function pointer) to C language function: ALCboolean alcCloseDevice(ALCdevice ...
boolean alcIsExtensionPresent(ALCdevice device, String extname)
Entry point (through function pointer) to C language function: ALCboolean alcIsExtensionPresent(ALC...
ALCdevice alcOpenDevice(String devicename)
Entry point (through function pointer) to C language function: ALCdevice * alcOpenDevice(const ALCc...