update source code

1. move audio decode code in main thread.