Makes volume slider logarithmic when limited to 100% to allow easier changing of volume towards the bottom of the slider. The tooltip remains as the slider location instead of the logarithmic value of the actual volume.
11 lines
282 B
C
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);
|