ALListener Class Reference
| Inherits from | NSObject |
| Conforms to | OALSuspendManager |
| Declared in | ALListener.h |
Overview
The listener represents the user who is listening to sounds in 3D space.
This object controls his position, orientation, and velocity, as well as providing a master
gain.
A context contains one and only one listener.
Tasks
-
contextThe context this listener belongs to.
property -
mutedCauses this listener to stop hearing sound. It’s called “muted” rather than “deaf” to give a consistent name with other mute functions.
property -
gainGain (volume), affecting every sound this listener hears (0.0 = no sound, 1.0 = max volume). Only valid if this listener’s context is the current context.
property -
orientationOrientation (up: x, y, z, at: x, y, z). Only valid if this listener’s context is the current context.
property -
positionPosition (x, y, z). Only valid if this listener’s context is the current context.
property -
velocityVelocity (x, y, z). Only valid if this listener’s context is the current context.
property -
+ listenerForContext:(INTERNAL USE) Create a listener for the specified context.
-
– initWithContext:(INTERNAL USE) Initialize a listener for the specified context.
Properties
context
The context this listener belongs to.
@property (nonatomic, readonly) ALContext *contextDeclared In
ALListener.hgain
Gain (volume), affecting every sound this listener hears (0.0 = no sound, 1.0 = max volume). Only valid if this listener’s context is the current context.
@property (readwrite, assign) float gainDeclared In
ALListener.hmuted
Causes this listener to stop hearing sound. It’s called “muted” rather than “deaf” to give a consistent name with other mute functions.
@property (readwrite, assign) bool mutedDeclared In
ALListener.horientation
Orientation (up: x, y, z, at: x, y, z). Only valid if this listener’s context is the current context.
@property (readwrite, assign) ALOrientation orientationDeclared In
ALListener.h