AudioNodeEmitterDecayModel.CreateCustom(Double, Double) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new AudioNodeEmitterDecayModel that uses the specified minimum and maximum gain values to compute distance-based attenuation of a signal from an AudioNodeEmitter.
public:
static AudioNodeEmitterDecayModel ^ CreateCustom(double minGain, double maxGain);
static AudioNodeEmitterDecayModel CreateCustom(double const& minGain, double const& maxGain);
public static AudioNodeEmitterDecayModel CreateCustom(double minGain, double maxGain);
function createCustom(minGain, maxGain)
Public Shared Function CreateCustom (minGain As Double, maxGain As Double) As AudioNodeEmitterDecayModel
Parameters
- minGain
-
Double
double
The minimum gain level for the signal.
- maxGain
-
Double
double
The maximum gain level for the signal.
Returns
The created decay model.
Remarks
The minGain parameter value must be greater than or equal to 1.58439*10-5, and the maxGain parameter must be less than or equal to 3.98. In decibels, these limits map to a range of -96 dB to 12 dB. Convert from a decibel value to amplitude scale using the equation gain = 10(dB/20) where dB is the decibel value you wish to convert.