Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 1.13 KB

audionodeemitterdecaymodel_createcustom_675347716.md

File metadata and controls

30 lines (21 loc) · 1.13 KB
-api-id -api-type
M:Windows.Media.Audio.AudioNodeEmitterDecayModel.CreateCustom(System.Double,System.Double)
winrt method

Windows.Media.Audio.AudioNodeEmitterDecayModel.CreateCustom

-description

Creates a new AudioNodeEmitterDecayModel that uses the specified minimum and maximum gain values to compute distance-based attenuation of a signal from an AudioNodeEmitter.

-parameters

-param minGain

The minimum gain level for the signal.

-param maxGain

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.

-examples

-see-also