Inherits from NSObject
Conforms to OALSuspendManager
Declared in ALDevice.h

Overview

A device is a logical mapping to an audio device through the OpenAL implementation.

Tasks

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

majorVersion

The specification revision for this implementation (major version).

@property (nonatomic, readonly) int majorVersion

Declared In

ALDevice.h

minorVersion

The specification revision for this implementation (minor version).

@property (nonatomic, readonly) int minorVersion

Declared In

ALDevice.h

Class Methods

deviceWithDeviceSpecifier:

Open the specified device.

+ (id)deviceWithDeviceSpecifier:(NSString *)deviceSpecifier

Parameters

deviceSpecifier

The device to open (nil = default device).

Return Value

A new device.

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

notifyContextDeallocating:

(INTERNAL USE) Used by ALContext to announce deallocation.

- (void)notifyContextDeallocating:(ALContext *)context

Parameters

context

The context that is deallocating.

Declared In

ALDevice.h

notifyContextInitializing:

(INTERNAL USE) Used by ALContext to announce initialization.

- (void)notifyContextInitializing:(ALContext *)context

Parameters

context

The context that is initializing.

Declared In

ALDevice.h