Rename some audio related types and variables.
Clarify MIDI error handling.