cleanup (no practical changes here except that i removed support for LOG_WAVE raw sound filewriting)