Preferences crash fix

Fix for two crashes that were created by changing audio I/O preferences.