Fixed bugs, Simplify AudioDevice constructor