format the code, and some trivial modification
add SetLatency for channels
optimize the program
bug fix:fix left/right channel calculation in mesh