sound: fix random volume on connection.
sound: fix long latency.
sound: cleanup invalid code.
Merge pull request #1737 from zhangzl2013/sound-fix

Sound fix