SSpSource_SetAngularAttenuation
You can use theSSpSource_SetAngularAttenuationfunction 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_SetAngularAttenuationfunction sets the angle at the apex of the angular attenuation cone and the amount of attenuation for the sound source specified by theinSourceReferenceparameter to the values specified in theinConeAngleandinConeAttenuationparameters. The default settings provide no attenuation in any direction (that is,inConeAngleis 2p andinConeAttenuationis 0.0).