ALDevice Class Reference
Inherits from | NSObject |
Conforms to | OALSuspendManager |
Declared in | ALDevice.h |
Tasks
-
contexts
All contexts created on this device (ALContext*).
property -
device
The OpenAL device pointer.
property -
extensions
List of strings describing all extensions available on this device (NSString*).
property -
majorVersion
The specification revision for this implementation (major version).
property -
minorVersion
The 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).
-
– clearBuffers
Clear 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 *contexts
Declared In
ALDevice.h
device
The OpenAL device pointer.
@property (nonatomic, readonly) ALCdevice *device
Declared In
ALDevice.h
extensions
List of strings describing all extensions available on this device (NSString*).
@property (nonatomic, readonly) NSArray *extensions
Declared In
ALDevice.h
Instance Methods
clearBuffers
Clear all buffers being used by sources of contexts opened on this device.
- (void)clearBuffers
Declared In
ALDevice.h
getProcAddress:
Get the address of the specified procedure (C function address).
- (void *)getProcAddress:(NSString *)functionName
Parameters
- functionName
the name of the procedure to get.
Return Value
the procedure’s address, or NULL if it wasn’t found.
Declared In
ALDevice.h
initWithDeviceSpecifier:
Initialize with the specified device.
- (id)initWithDeviceSpecifier:(NSString *)deviceSpecifier
Parameters
- deviceSpecifier
The device to open (nil = default device).
Return Value
the initialized device.
Declared In
ALDevice.h
isExtensionPresent:
Check if the specified extension is present.
- (bool)isExtensionPresent:(NSString *)name
Parameters
- name
The extension to check.
Return Value
TRUE if the extension is present.
Declared In
ALDevice.h