28package com.jogamp.openal;
30import com.jogamp.common.os.Platform;
31import com.jogamp.common.util.VersionNumber;
32import com.jogamp.common.util.VersionNumberString;
35 private final String vendor;
36 private final String renderer;
37 private final VersionNumberString version;
38 private final VersionNumberString vendorVersion;
47 private static final VersionNumberString
getVendorVersion(
final VersionNumberString version) {
49 String str = version.getVersionString().substring(version.endOfStringMatch()).trim();
50 while ( str.length() > 0 ) {
51 final VersionNumberString vv =
new VersionNumberString(str, VersionNumber.getDefaultVersionNumberPattern());
52 final int eosm = vv.endOfStringMatch();
54 if( vv.hasMajor() && vv.hasMinor() ) {
57 str = str.substring( eosm ).trim();
62 return VersionNumberString.zeroVersion;
128 return toString(
false,
null).toString();
131 public StringBuilder
toString(
final boolean withNewline, StringBuilder sb) {
133 sb =
new StringBuilder();
136 sb.append(
"AL_VENDOR ").append(
getVendor());
137 sb.append(Platform.getNewline());
139 sb.append(Platform.getNewline());
140 sb.append(
"AL_VERSION ").append(
getVersion());
141 sb.append(Platform.getNewline());
143 sb.append(Platform.getNewline());
145 sb.append(
"vendor ").append(
getVendor());
This class provides factory methods for generating AL and ALC objects.
static AL getAL()
Get the default AL object.
VersionNumberString getVendorVersion()
Returns the optional vendor version at the end of the AL_VERSION string if exists,...
VersionNumberString getVersion()
Return the AL context implementation version.
StringBuilder toString(final boolean withNewline, StringBuilder sb)
ALVersion(final ALC alc)
ALVersion Ctor.
String getVendor()
Return the AL context implementation vendor.
ALVersion(final AL al)
ALVersion Ctor.
String getRenderer()
Return the AL context implementation renderer.
void alcDestroyContext(ALCcontext context)
Entry point (through function pointer) to C language function: void alcDestroyContext(ALCcontext * ...
boolean alcMakeContextCurrent(ALCcontext context)
Entry point (through function pointer) to C language function: ALCboolean alcMakeContextCurrent(ALC...
boolean alcCloseDevice(ALCdevice device)
Entry point (through function pointer) to C language function: ALCboolean alcCloseDevice(ALCdevice ...
ALCdevice alcOpenDevice(String devicename)
Entry point (through function pointer) to C language function: ALCdevice * alcOpenDevice(const ALCc...
ALCcontext alcCreateContext(ALCdevice device, IntBuffer attrlist)
Entry point (through function pointer) to C language function: ALCcontext * alcCreateContext(ALCdev...
static final int AL_VENDOR
Define "AL_VENDOR" with expression '0xB001', CType: int.
static final int AL_VERSION
Define "AL_VERSION" with expression '0xB002', CType: int.
static final int AL_RENDERER
Define "AL_RENDERER" with expression '0xB003', CType: int.
String alGetString(int param)
Entry point (through function pointer) to C language function: const ALchar * alGetString(ALenum pa...