ALCaptureDevice Class Reference
| Inherits from | NSObject |
| Declared in | ALCaptureDevice.h |
Overview
UNIMPLEMENTED FOR IOS An OpenAL device for capturing sound data.
Note: This functionality is NOT implemented in iOS OpenAL!
This class is a placeholder in case such functionality is added in a future iOS SDK.
Tasks
-
captureSamplesThe number of capture samples available.
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:frequency:format:bufferSize:Open the specified device.
-
– initWithDeviceSpecifier:frequency:format:bufferSize:Open the specified device.
-
– startCaptureStart capturing samples.
-
– stopCaptureStop capturing samples.
-
– moveSamples:toBuffer:Move captured samples to the specified buffer. This method will fail if less than the specified number of samples have been captured.
-
– isExtensionPresent:Check if the specified extension is present.
-
– getProcAddress:Get the address of the specified procedure (C function address).
Properties
captureSamples
The number of capture samples available.
@property (nonatomic, readonly) int captureSamplesDeclared In
ALCaptureDevice.hdevice
The OpenAL device pointer.
@property (nonatomic, readonly) ALCdevice *deviceDeclared In
ALCaptureDevice.hextensions
List of strings describing all extensions available on this device (NSString*).
@property (nonatomic, readonly) NSArray *extensionsDeclared In
ALCaptureDevice.hClass Methods
deviceWithDeviceSpecifier:frequency:format:bufferSize:
Open the specified device.
+ (id)deviceWithDeviceSpecifier:(NSString *)deviceSpecifier frequency:(ALCuint)frequency format:(ALCenum)format bufferSize:(ALCsizei)bufferSizeParameters
- deviceSpecifier
The name of the device to open (nil = default device).
- frequency
The frequency to capture at.
- format
The audio format to capture as.
- bufferSize
The size of buffer that the device must allocate for audio capture.
Return Value
A new capture device.
Declared In
ALCaptureDevice.hInstance Methods
getProcAddress:
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
ALCaptureDevice.hinitWithDeviceSpecifier:frequency:format:bufferSize:
Open the specified device.
- (id)initWithDeviceSpecifier:(NSString *)deviceSpecifier frequency:(ALCuint)frequency format:(ALCenum)format bufferSize:(ALCsizei)bufferSizeParameters
- deviceSpecifier
The name of the device to open (nil = default device).
- frequency
The frequency to capture at.
- format
The audio format to capture as.
- bufferSize
The size of buffer that the device must allocate for audio capture.
Return Value
The initialized capture device.
Declared In
ALCaptureDevice.hisExtensionPresent:
Check if the specified extension is present.
- (bool)isExtensionPresent:(NSString *)nameParameters
- name
The name of the extension to check.
Return Value
TRUE if the extension is present.
Declared In
ALCaptureDevice.hmoveSamples:toBuffer:
Move captured samples to the specified buffer. This method will fail if less than the specified number of samples have been captured.
- (bool)moveSamples:(ALCsizei)numSamples toBuffer:(ALCvoid *)bufferParameters
- numSamples
The number of samples to move.
- buffer
the buffer to move the samples into.
Return Value
TRUE if the operation was successful.
Declared In
ALCaptureDevice.h