if (veN1 >= 65){
alListenerf(AL_GAIN, (veN1/100)*2);
} else{
alListenerf(AL_GAIN, (veN1/100)*0.5);
}
Is not nicely linear. Any idea on how to improve the above? veN1 only goes from 50 to 80.