ALDevice Class Reference
| Inherits from | NSObject |
| Conforms to | OALSuspendManager |
| Declared in | ALDevice.h |
Tasks
-
contextsAll contexts created on this device (ALContext*).
property -
deviceThe OpenAL device pointer.
property -
extensionsList of strings describing all extensions available on this device (NSString*).
property -
majorVersionThe specification revision for this implementation (major version).
property -
minorVersionThe specification revision for this implementation (minor version).
property -
+ deviceWithDeviceSpecifier:Open the specified device.
-
– initWithDeviceSpecifier:Initialize with the specified device.
-
– isExtensionPresent:Check if the specified extension is present.
-
– getProcAddress:Get the address of the specified procedure (C function address).
-
– clearBuffersClear all buffers being used by sources of contexts opened on this device.
-
– notifyContextInitializing:(INTERNAL USE) Used by ALContext to announce initialization.
-
– notifyContextDeallocating:(INTERNAL USE) Used by ALContext to announce deallocation.
Properties
contexts
All contexts created on this device (ALContext*).
@property (nonatomic, readonly) NSArray *contextsDeclared In
ALDevice.hdevice
The OpenAL device pointer.
@property (nonatomic, readonly) ALCdevice *deviceDeclared In
ALDevice.hextensions
List of strings describing all extensions available on this device (NSString*).
@property (nonatomic, readonly) NSArray *extensionsDeclared In
ALDevice.hInstance Methods
clearBuffers
Clear all buffers being used by sources of contexts opened on this device.
- (void)clearBuffersDeclared In
ALDevice.hgetProcAddress:
Get the address of the specified procedure (C function address).
- (void *)getProcAddress:(NSString *)functionNameParameters
- functionName
the name of the procedure to get.
Return Value
the procedure’s address, or NULL if it wasn’t found.
Declared In
ALDevice.hinitWithDeviceSpecifier:
Initialize with the specified device.
- (id)initWithDeviceSpecifier:(NSString *)deviceSpecifierParameters
- deviceSpecifier
The device to open (nil = default device).
Return Value
the initialized device.
Declared In
ALDevice.hisExtensionPresent:
Check if the specified extension is present.
- (bool)isExtensionPresent:(NSString *)nameParameters
- name
The extension to check.
Return Value
TRUE if the extension is present.
Declared In
ALDevice.h