get rid of ternary op, add audio thread warning