audio-io fixed sync problem while reads pcm data, code refactoring

No match.