Copyright © 2005-2019 MultiMedia Soft

VolumeAutomation.ScaleType property

Previous pageReturn to chapter overviewNext page

Type

[Visual Basic]

Public Property ScaleType As enumVolumeScales


 

[C#]

public enumVolumeScales ScaleType {get; set;}


 

[C++]

public: __property enumVolumeScales get_ScaleType();

public: __property void set_ScaleType(enumVolumeScales);


 

 

Remarks

The volume scaling type.

Supported values are the following:

Mnemonic constant

Value

Meaning

SCALE_LINEAR

0

Volume is based upon a linear scale and can be in the range from 0.0 (silence) to 100.0 (max volume)

SCALE_LOG

1

Volume, expressed in dB, is based upon a logarithmic scale and can be in the range from -100  (silence) to 0 (max volume)

The actual applied formula for converting a linear volume into a logarithmic volume is the following:

VolumeInDB = 20 * log10 (VolumeLinear/100)

The C syntax for converting a logarithmic volume into a linear volume is the following:

VolumeLinear = 100 * pow (10, VolumeInDB/20);

 

 

See also

VolumeAutomation property

VolumeAutomationMan class

How to manage Volume Automation tutorial.