-api-id | -api-type |
---|---|
M:Windows.Media.Audio.AudioNodeEmitterDecayModel.CreateCustom(System.Double,System.Double) |
winrt method |
Creates a new AudioNodeEmitterDecayModel that uses the specified minimum and maximum gain values to compute distance-based attenuation of a signal from an AudioNodeEmitter.
The minimum gain level for the signal.
The maximum gain level for the signal.
The created decay model.
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.