Use a numeric approximation to make powf much faster. Loss of accuracy isn't an issue in an audio output device.