SSpSource_SetAngularAttenuation
You can use theSSpSource_SetAngularAttenuation
function to set the angular attenuation of a sound source.
OSStatus SSpSource_SetAngularAttenuation ( SSpSourceReference inSourceReference, float inConeAngle, float inConeAttenuation);
inSourceReference
- A source reference.
inConeAngle
- The angle, in radians, at the apex of the angular attenuation cone. This angle should be between 0 and 2p.
inConeAttenuation
- The amount of attenuation, in decibels (dB), that occurs outside the angular attenuation cone.
- function result
- A result code.
DESCRIPTION
TheSSpSource_SetAngularAttenuation
function sets the angle at the apex of the angular attenuation cone and the amount of attenuation for the sound source specified by theinSourceReference
parameter to the values specified in theinConeAngle
andinConeAttenuation
parameters. The default settings provide no attenuation in any direction (that is,inConeAngle
is 2p andinConeAttenuation
is 0.0).