reworked audio codec and engine detection