Fix up various sound processing functions.