Double ScaleFactor { get; set; }
Defines the scale factor by which the data will be scaled just before it will be played.
Returns: Double
Remarks:
Ideally the scaleFactor should be such, that the maximum value of the audio stream never needs to be clipped, but it is also not less then 2x smaller then the maximum allowed value for the given dynamic range. (bits of precision). Here are the maximum allowed ranges for different bit depths:
- 8 bits: -128..+127
- 16 bits: -32768..+32767
- 24 bits: -8388608..+838860 If the values of the signal do not take advantage of the full available dynamic range, the quality of the sound will suffer. The monitorData method will returned unscaled data.