public interface AVAudio3DMixing
Protocol that defines 3D mixing properties
| Modifier and Type | Method and Description |
|---|---|
float |
obstruction()
[@property] obstruction
|
float |
occlusion()
[@property] occlusion
|
long |
pointSourceInHeadMode()
[@property] pointSourceInHeadMode
|
AVAudio3DPoint |
position()
[@property] position
|
float |
rate()
[@property] rate
|
long |
renderingAlgorithm()
[@property] renderingAlgorithm
|
float |
reverbBlend()
[@property] reverbBlend
|
void |
setObstruction(float value)
[@property] obstruction
|
void |
setOcclusion(float value)
[@property] occlusion
|
void |
setPointSourceInHeadMode(long value)
[@property] pointSourceInHeadMode
|
void |
setPosition(AVAudio3DPoint value)
[@property] position
|
void |
setRate(float value)
[@property] rate
|
void |
setRenderingAlgorithm(long value)
[@property] renderingAlgorithm
|
void |
setReverbBlend(float value)
[@property] reverbBlend
|
void |
setSourceMode(long value)
[@property] sourceMode
|
long |
sourceMode()
[@property] sourceMode
|
float obstruction()
Simulates filtering of the direct path of sound due to an obstacle
Only the direct path of sound between the source and listener is blocked.
Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode
float occlusion()
Simulates filtering of the direct and reverb paths of sound due to an obstacle
Both the direct and reverb paths of sound between the source and listener are blocked.
Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode
long pointSourceInHeadMode()
In-head rendering choice for AVAudio3DMixingSourceModePointSource in AVAudio3DMixingRenderingAlgorithmAuto
Default: AVAudio3DMixingPointSourceInHeadModeMono Mixer: AVAudioEnvironmentNode
AVAudio3DPoint position()
The location of the source in the 3D environment
The coordinates are specified in meters.
Mixer: AVAudioEnvironmentNode
float rate()
Changes the playback rate of the input signal
A value of 2.0 results in the output audio playing one octave higher. A value of 0.5, results in the output audio playing one octave lower.
Range: 0.5 -> 2.0 Default: 1.0 Mixer: AVAudioEnvironmentNode
long renderingAlgorithm()
Type of rendering algorithm used
Depending on the current output format of the AVAudioEnvironmentNode, only a subset of the rendering algorithms may be supported. An array of valid rendering algorithms can be retrieved by calling applicableRenderingAlgorithms on AVAudioEnvironmentNode.
Default: AVAudio3DMixingRenderingAlgorithmEqualPowerPanning Mixer: AVAudioEnvironmentNode
float reverbBlend()
Controls the blend of dry and reverb processed audio
This property controls the amount of the source's audio that will be processed by the reverb in AVAudioEnvironmentNode. A value of 0.5 will result in an equal blend of dry and processed (wet) audio.
Range: 0.0 (completely dry) -> 1.0 (completely wet) Default: 0.0 Mixer: AVAudioEnvironmentNode
void setObstruction(float value)
Simulates filtering of the direct path of sound due to an obstacle
Only the direct path of sound between the source and listener is blocked.
Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode
void setOcclusion(float value)
Simulates filtering of the direct and reverb paths of sound due to an obstacle
Both the direct and reverb paths of sound between the source and listener are blocked.
Range: -100.0 -> 0.0 dB Default: 0.0 Mixer: AVAudioEnvironmentNode
void setPointSourceInHeadMode(long value)
In-head rendering choice for AVAudio3DMixingSourceModePointSource in AVAudio3DMixingRenderingAlgorithmAuto
Default: AVAudio3DMixingPointSourceInHeadModeMono Mixer: AVAudioEnvironmentNode
void setPosition(AVAudio3DPoint value)
The location of the source in the 3D environment
The coordinates are specified in meters.
Mixer: AVAudioEnvironmentNode
void setRate(float value)
Changes the playback rate of the input signal
A value of 2.0 results in the output audio playing one octave higher. A value of 0.5, results in the output audio playing one octave lower.
Range: 0.5 -> 2.0 Default: 1.0 Mixer: AVAudioEnvironmentNode
void setRenderingAlgorithm(long value)
Type of rendering algorithm used
Depending on the current output format of the AVAudioEnvironmentNode, only a subset of the rendering algorithms may be supported. An array of valid rendering algorithms can be retrieved by calling applicableRenderingAlgorithms on AVAudioEnvironmentNode.
Default: AVAudio3DMixingRenderingAlgorithmEqualPowerPanning Mixer: AVAudioEnvironmentNode
void setReverbBlend(float value)
Controls the blend of dry and reverb processed audio
This property controls the amount of the source's audio that will be processed by the reverb in AVAudioEnvironmentNode. A value of 0.5 will result in an equal blend of dry and processed (wet) audio.
Range: 0.0 (completely dry) -> 1.0 (completely wet) Default: 0.0 Mixer: AVAudioEnvironmentNode
void setSourceMode(long value)
Controls how individual channels of an input bus are rendered
Default: AVAudio3DMixingSourceModeSpatializeIfMono Mixer: AVAudioEnvironmentNode
long sourceMode()
Controls how individual channels of an input bus are rendered
Default: AVAudio3DMixingSourceModeSpatializeIfMono Mixer: AVAudioEnvironmentNode