LuaEngine的音频组件,可实现游戏内播放音频的功能
- loadAudio
- playAudio
- pauseAudio
- resumeAudio
- seekAudio
- setVolume
- getCurrentPosition
- deleteAudio
loadAudio('test','nativePC/test.ogg') playAudio('test') setVolume('test', 128)
loadAudio可加载ogg和wav格式的音频文件
setVolume取值范围是0-128