Merge pull request #2 from shanzi/master

Fix bugs and finished the simple demo of osx
完善 osx demo，添加音量和duration 控制