More elegant solution to filtering audio formats