fixed clipping at end of each audio slice
refactor audio setup dialog
more refactoring and minor bug fixes
save audio config state
give cancel button functionality
add save button to audio setup dialog
added midi input test tone checkbox