Cog/Audio/Helper.h
Shoh Sewell 3e41edc7d6 Makes volume logarithmic when limited to 100%
Modifies Helper.m, Helper.h, and VolumeSlider.m so when volume is limited to 100%, the volume slider is logarithmic with an X^2 approximation.

Also makes sure the value shown on the volume tooltip is not logarithmic when limited to 100%.

Makes some variables in VolumeSlider.m and parameters in Helper.h/Helper.m const as well.
2023-05-04 18:46:13 -07:00

11 lines
282 B
C

/*
* Helper.h
* CogAudio
*
* Created by Andre Reffhaug on 2/17/08.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*
*/
double logarithmicToLinear(const double logarithmic, double MAX_VOLUME);
double linearToLogarithmic(const double linear, double MAX_VOLUME);