I am trying to make a volume control for audio calibration. We were hoping to go to a 0.1% increment for altering the volume on a SoundChannel's volume.
This is my code, and my output.
var transform:SoundTransform = _soundChannel.soundTransform;
transform.volume = 0.999;
_soundChannel.soundTransform = transform;
trace('transform ' +transform.volume); // 0.999
trace('channel ' +_soundChannel.soundTransform.volume); // 0.99
The SoundTransform
Object is retaining the 3rd decimal place, but as soon as I assign it to the soundTransform
property of my SoundChannel
, it's reducing the specificity of my volume.
Does anyone know what could be happening here?