refine audio processing functions